updates.
[silc.git] / distdir / autodist-post-process-dist
index 1d17dbfd67776c2d2d9eb0d2199c06a998e8d467..768ce026439c13682ba4ebb9495492047c42031d 100644 (file)
@@ -13,6 +13,11 @@ if test -d $distdir; then
   rm -rf `find $distdir -name Makefile`
 fi
 
-sed -e "s/AUTODIST_VERSION/$dist_version/" apps/autodist/autodist.spec.in \
-  > $distdir/autodist.spec
+release=$5
+if test -z $release; then
+  release="0.fc7"
+fi
+
+sed -e "s/AUTODIST_VERSION/$dist_version/" -e "s/AUTODIST_RELEASE/$release/" \
+  apps/autodist/autodist.spec.in > $distdir/autodist.spec