updates
[silc.git] / prepare
diff --git a/prepare b/prepare
index 4c7b3abaf34d19506e61efe12d1507266999243e..66e2c4f0ef331e90bf7b9027c02817b945928eaa 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.2.3
+
+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 "1,/YYYYMMDD/s//$version/" configure.in.pre >configure.in
+sed -e "/SILC_VERSION/s//$version/" configure.in.pre >configure.in
 
 aclocal
 autoconf
 autoheader
 automake
 
+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