updates.
[crypto.git] / prepare
diff --git a/prepare b/prepare
index 8719ff7abe39415ac806aacd685dd76aab4c2124..a2295ede9568ffc927da46b900251b01ed252736 100755 (executable)
--- a/prepare
+++ b/prepare
@@ -84,10 +84,13 @@ done
 cd $path
 
 # Replace version string and create configure.in
-sed -e "/SILC_VERSION/s//$version/" configure.in.pre >configure.in2
+echo "# Automatically generated by ./prepare from configure.in.pre. Do not edit!" >configure.in2
+sed -e "/SILC_VERSION/s//$dist_version/" configure.in.pre >>configure.in2
 sed -e "/SILC_PACKAGE/s//silc-"$distribution"/" configure.in2 >configure.in
 rm -f configure.in2
 
+cp Makefile.defines.in Makefile.defines
+
 aclocal
 autoconf
 autoheader
@@ -103,6 +106,7 @@ cd ../..
 file=includes/version_internal.h
 echo "/* Automatically generated by ./prepare */" >$file
 echo "#define SILC_VERSION_STRING \"$version\"" >>$file
+echo "#define SILC_DISTRIBUTION_VERSION \"$dist_version\"" >>$file
 echo "#define SILC_PROTOCOL_VERSION_STRING \"SILC-1.0-$version\"" >>$file
 
 # preparing irssi