updates.
[silc.git] / prepare
diff --git a/prepare b/prepare
index 2a749e6e8dbbeb9effb02b7c5a0b97994257838a..8c13e001544e2982f9c59e239039317b909ab475 100755 (executable)
--- a/prepare
+++ b/prepare
@@ -38,7 +38,7 @@
 # SILC Distribution versions. Set here or give the version on the command
 # line as argument.
 #
-SILC_VERSION=0.2.6                     # Base version
+SILC_VERSION=0.4                       # Base version
 
 
 #############################################################################
@@ -78,7 +78,7 @@ do
     continue;
   fi
   if [ -f Makefile.am.pre ]; then
-    sed -e "/SILC_DISTRIBUTION_SUBDIRS/s//$sub/" Makefile.am.pre >Makefile.am 2>/dev/null
+    sed -e "/SILC_DISTRIBUTION_SUBDIRS/s//$sub/" -e "/SILC_DISTRIBUTION_SUBDIRS/s//$sub/" Makefile.am.pre >Makefile.am 2>/dev/null
   fi
   cd $path
 done
@@ -120,9 +120,11 @@ rm -f configure.in2 configure.in3 am_cond
 # Prepare the Makefile.defines
 #
 cp Makefile.defines.pre Makefile.defines.in
-cp Makefile.defines.in irssi
 cp Makefile.defines_int.pre Makefile.defines_int.in
+cp Makefile.defines.in irssi
 cp Makefile.defines_int.in irssi
+cp Makefile.defines.in lib/silcmath/mpi
+cp Makefile.defines_int.in lib/silcmath/mpi
 
 aclocal
 autoconf
@@ -136,6 +138,13 @@ autoheader
 automake >/dev/null 2>/dev/null
 cd ../..
 
+cd lib/silcmath/mpi
+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