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-04-09 02:01:36 +00:00
|
|
|
find . -name Makefile.in -print | xargs rm -f
|
2002-04-04 13:44:56 +00:00
|
|
|
rm -f config.h.in aclocal.m4 install-sh missing mkinstalldirs \
|
2002-04-06 06:56:44 +00:00
|
|
|
stamp-h.in tags configure config.log
|
2002-04-04 13:44:56 +00:00
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
aclocal
|
|
|
|
autoheader
|
|
|
|
automake --foreign --add-missing --copy
|
|
|
|
autoconf
|
|
|
|
|
|
|
|
fi
|