Updates to comly with new source tree.
[silc.git] / prepare
diff --git a/prepare b/prepare
index 7ac2ad60fdd53be41bcddc29f57a197b9d250689..02bc775667d2dd8d02fe8d87da0fae02e2626390 100755 (executable)
--- a/prepare
+++ b/prepare
@@ -30,4 +30,11 @@ aclocal
 autoconf
 autoheader
 automake
+
+version=`date +%d%m%Y`
+file=includes/version_internal.h
+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."