#
# prepare
#
-# Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
+# Author: Pekka Riikonen <priikone@silcnet.org>
#
# 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
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
+# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# SILC Distribution versions. Set here or give the version on the command
# line as argument.
#
-SILC_VERSION=0.4 # Base version
-
+SILC_VERSION=0.8 # Base version
#############################################################################
dist_version=$version
fi
-echo "Preparing $distribution distribution version $version"
+echo "Preparing $distribution distribution version $version (package $dist_version)"
#
# Go though the subdirs and create the Makefile.ams from the
#
subdirs=`grep "$distribution"_SUBDIRS= distributions |cut -d= -f2`
ed=`grep "$distribution"_EXTRA_DIST= distributions |cut -d= -f2`
-sed -e "/SILC_DISTRIBUTION_SUBDIRS/s//$subdirs/" -e "/SILC_DISTRIBUTION_EXTRA/s//$ed/" Makefile.am.pre >Makefile.am
+sed -e "/SILC_DISTRIBUTION_SUBDIRS/s//$subdirs/" -e "/SILC_DISTRIBUTION_EXTRA/s,,$ed," Makefile.am.pre >Makefile.am
path=`pwd`
for i in $subdirs
do
aclocal
autoconf
-autoheader
+autoheader >/dev/null 2>/dev/null
automake
-cd lib/trq
-aclocal
-autoconf
-autoheader
-automake >/dev/null 2>/dev/null
-cd ../..
-
+echo "Preparing mpi"
cd lib/silcmath/mpi
aclocal
autoconf
-autoheader
+autoheader </dev/null 2>/dev/null
automake >/dev/null 2>/dev/null
cd ../../..
echo "#define SILC_NAME \"SILC $distribution\"" >>$file
# preparing irssi
+echo "Preparing irssi"
cd irssi
sh autogen.sh 2>/dev/null 1>/dev/null
cd ..
version_date=`date +%Y%m%d`
echo "/* automatically created by autogen.sh */" > $file
echo "#define IRSSI_VERSION \"$dist_version (Irssi base: @VERSION@ - SILC base: SILC Toolkit $version)\"" >>$file
-echo "#define IRSSI_VERSION_DATE \"$version_date\"" >> $file
+echo "#define IRSSI_VERSION_DATE $version_date" >> $file
+echo "#define IRSSI_VERSION_TIME $version_date" >> $file
echo "Done, now run ./configure and make."