quake2forge/bootstrap

33 lines
619 B
Text
Raw Normal View History

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