updates.
[silc.git] / prepare
diff --git a/prepare b/prepare
index e052592dc8cf0d8297458459d6513c9406c077df..d9c2964a8c7e87501fa88348b72f787981e4a164 100755 (executable)
--- a/prepare
+++ b/prepare
@@ -1,10 +1,10 @@
 #!/bin/sh
 #
-#  prepare-clean
+#  prepare
 #
 #  Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
 #
-#  Copyright (C) 2000 Pekka Riikonen
+#  Copyright (C) 2000 - 2001 Pekka Riikonen
 #
 #  This program is free software; you can redistribute it and/or modify
 #  it under the terms of the GNU General Public License as published by
 # temporary files (including these prepare* scripts) are removed.
 #
 
+SILC_VERSION=0.2.6
+
+version=$1
+if test "$version" = ""; then
+  version=$SILC_VERSION;
+fi
+
 echo "Preparing SILC source tree for configuration and compilation..."
+
+# Replace version string and create configure.in
+sed -e "/SILC_VERSION/s//$version/" configure.in.pre >configure.in
+
 aclocal
 autoconf
 autoheader
 automake
 
-version=`date +%Y%m%d`
+cd lib/trq
+aclocal
+autoconf
+autoheader
+automake >/dev/null 2>/dev/null
+cd ../..
+
 file=includes/version_internal.h
 echo "/* Automatically generated by ./prepare */" >$file
 echo "#define SILC_VERSION_STRING \"$version\"" >>$file