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 \
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}} .
+ 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