updates.
[silc.git] / prepare
diff --git a/prepare b/prepare
index 4ca291179bb091df8623150432e5b6911272d3b1..966a4878140ba0cf57ee95656486e99834cc3417 100755 (executable)
--- a/prepare
+++ b/prepare
 # temporary files (including these prepare* scripts) are removed.
 #
 
-echo "Preparing SILC source tree for configuration and compilation..."
+SILC_VERSION=0.1
+
+version=$1
+if test "$version" = ""; then
+  version=$SILC_VERSION;
+fi
 
-version=`date +%Y%m%d`
+echo "Preparing SILC source tree for configuration and compilation..."
 
 # Replace version string and create configure.in
-sed -e "/YYYYMMDD/s//$version/" configure.in.pre >configure.in
+sed -e "/SILC_VERSION/s//$version/" configure.in.pre >configure.in
 
 aclocal
 autoconf
@@ -49,4 +54,4 @@ echo "/* Automatically generated by ./prepare */" >$file
 echo "#define SILC_VERSION_STRING \"$version\"" >>$file
 echo "#define SILC_PROTOCOL_VERSION_STRING \"SILC-1.0-$version\"" >>$file
 
-echo "Done, now run ./configure and make."
+echo "Done, now run ./configure and make."
\ No newline at end of file