to automatically replace correct version string to configure.in.
./prepare now creates the configure.in from configure.in.pre.
;;
esac
-AM_INIT_AUTOMAKE(silc, 20001101)
+# ./prepare script will automatically put the correct date. Do not edit!
+AM_INIT_AUTOMAKE(silc, YYYYMMDD)
AC_PREREQ(2.3)
AM_CONFIG_HEADER(includes/silcdefs.h)
#
echo "Preparing SILC source tree for configuration and compilation..."
+
+version=`date +%Y%m%d`
+
+# Replace version string and create configure.in
+sed -e "1,/YYYYMMDD/s//$version/" configure.in.pre >configure.in
+
aclocal
autoconf
autoheader
automake
-version=`date +%Y%m%d`
file=includes/version_internal.h
echo "/* Automatically generated by ./prepare */" >$file
echo "#define SILC_VERSION_STRING \"$version\"" >>$file
echo "All errors and warnings may be safely ignored."
make clean -k
make distclean -k
+rm -f configure.in
rm -f includes/stamp-*
rm -f includes/silcconfig.*
rm -f includes/version_internal.h