Branch sms9110 collapsed to main trunk.
[mdsms.git] / autogen.sh
index 75602a8..9589652 100755 (executable)
@@ -2,21 +2,13 @@
 # Run this to generate all the initial makefiles, etc.
 
 # $Id$
-#
-# $Log$
-# Revision 1.2  1999/06/02 18:26:32  short
-# Makefile target dist-tarZ added for 'compress'-ed archives.
-#
-# Revision 1.1.1.1  1999/05/26 13:06:26  short
-# First alpha release.
-#
 
 CONFDEFS="--enable-maintainer-mode --enable-debug"
 
-if [ -f Makefile ];then touch ChangeLog;make maintainer-clean;fi
-VER="`sed <configure.in -n 's/^AM_INIT_AUTOMAKE(.*, *\([^ ]*\) *)$/\1/p'`"
-echo "Detected version: $VER"
+# if [ -f Makefile ];then touch ChangeLog;make maintainer-clean;fi
 rm -r -f \
+       `find -name "*~"` \
+       errs* \
        install-sh \
        mkinstalldirs \
        missing \
@@ -40,23 +32,40 @@ rm -r -f \
        getopt.c \
        getopt.h \
        getopt1.c \
-       mdsms-$VER.tar.gz \
-       mdsms-$VER.tar.Z \
+       need-declaration.m4 \
+       strdup.c \
+       usleep.c \
+       memmove.c \
+       mdsms.1 \
+       mdsms.1.in2 \
+       mdsms \
+       mdsms-[0-9]*.tar.gz \
+       mdsms-[0-9]*.tar.Z \
        manfmt \
        .deps \
        ChangeLog \
+       *.o \
 
 
 if [ "$1" = clean ];then exit;fi
 
-cp ../getopt/getopt{1.c,.{c,h}} .
-aclocal
+       d="`pwd`"
+       (cd $HOME/src/misc
+        (cd getopt
+               cp getopt.c getopt.h getopt1.c $d
+        )
+        (cd macros
+               cp need-declaration.m4 $d
+        )
+        cp strdup.c usleep.c memmove.c $d
+       )
+
+aclocal -I .
 autoheader
 touch ChangeLog
 automake --gnu -c --add-missing
-#--include-deps
 rm -f ChangeLog
-cp ../LGPL2.1 COPYING
+cp $HOME/src/misc/LGPL2.1 COPYING
 autoheader
 autoconf