2002-04-03 00:27:05 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# bootstrap the build when checking out from CVS
|
|
|
|
|
2002-04-09 01:49:38 +00:00
|
|
|
# dodgy hack to use gmake if we're on bsd systems
|
2002-04-09 02:01:36 +00:00
|
|
|
if [ -x /usr/local/bin/gmake ]; then
|
2002-04-09 01:49:38 +00:00
|
|
|
MAKE=/usr/local/bin/gmake
|
|
|
|
else
|
|
|
|
MAKE=make
|
|
|
|
fi
|
|
|
|
|
2002-04-04 23:11:31 +00:00
|
|
|
if [ "$1" = "clean" ]; then
|
2002-04-04 13:44:56 +00:00
|
|
|
# clean up junk
|
|
|
|
|
|
|
|
if [ -f Makefile ]; then
|
2002-04-09 01:49:38 +00:00
|
|
|
$MAKE distclean
|
2002-04-04 13:44:56 +00:00
|
|
|
fi
|
2002-07-01 04:57:54 +00:00
|
|
|
find . -name Makefile.in -print0 | xargs -r0 rm -f
|
2002-04-10 06:57:39 +00:00
|
|
|
rm -f aclocal.m4 install-sh missing mkinstalldirs \
|
2002-07-01 04:53:50 +00:00
|
|
|
stamp-h.in tags configure config.* \
|
|
|
|
compile depcomp stamp-h
|
2002-04-13 02:03:20 +00:00
|
|
|
rm -rf autom4te.cache
|
2002-07-01 04:57:54 +00:00
|
|
|
find . -name '*~' -print0 | xargs -r0 rm -f
|
2002-04-04 13:44:56 +00:00
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
aclocal
|
|
|
|
autoheader
|
|
|
|
automake --foreign --add-missing --copy
|
|
|
|
autoconf
|
|
|
|
|
|
|
|
fi
|