2008-02-17 15:20:52 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2018-10-28 15:25:23 +01:00
|
|
|
unset ACLOCAL
|
|
|
|
|
2008-02-17 15:20:52 +01:00
|
|
|
if [ "$1" = "--clean" ]
|
|
|
|
then
|
|
|
|
if [ -a Makefile ]
|
|
|
|
then
|
|
|
|
make maintainer-clean
|
|
|
|
elif [ -a configure ]
|
|
|
|
then
|
|
|
|
configure && $0 --clean
|
2024-03-29 18:32:39 +01:00
|
|
|
else
|
2008-02-17 15:20:52 +01:00
|
|
|
bootstrap && configure && $0 --clean
|
|
|
|
fi
|
|
|
|
|
|
|
|
rm -rf configure libtool aclocal.m4 `find . -name Makefile.in` autom4te*.cache config/config.guess config/config.h.in config/config.sub config/depcomp config/install-sh config/ltmain.sh config/missing config/mkinstalldirs config/stamp-h config/stamp-h.in
|
|
|
|
|
|
|
|
else
|
|
|
|
export AUTOMAKE="automake --add-missing --foreign --copy"
|
|
|
|
autoreconf -fisv && rm -f `find . -name "*~"` && rm -f ChangeLog
|
|
|
|
exit $?
|
|
|
|
fi
|