quake2forge/bootstrap

28 lines
847 B
Plaintext
Raw Normal View History

#!/bin/sh
# bootstrap the build when checking out from CVS
export WANT_AUTOMAKE_1_6=1
2002-04-04 23:11:31 +00:00
if [ "$1" = "clean" ]; then
# quick hack to remove extra generated files that make distclean
# doesn't remove
find . -name Makefile.in -print0 | xargs -r0 rm -f
rm -f aclocal.m4 install-sh missing mkinstalldirs \
stamp-* tags configure config.* \
compile depcomp ltmain.sh libtool
rm -rf autom4te.cache libltdl
rm -rf quake2-*.tar.gz
find . -name '*~' -print0 | xargs -r0 rm -f
find . -name '*.rej' -print0 | xargs -r0 rm -f
find . -name '*.orig' -print0 | xargs -r0 rm -f
exit
fi
# no version checking is done here, it's too hard and not worth the effort
# when one can just read the README
aclocal && \
autoheader && \
libtoolize --copy --ltdl --automake && \
automake --foreign --add-missing --copy && \
autoconf