Bootstrap script to generate auto* files.

master
lhecking 2006-10-12 11:36:43 +00:00
parent 32220c0764
commit 7d962e7eba
1 changed files with 35 additions and 0 deletions

35
src/bootstrap.sh Executable file
View File

@ -0,0 +1,35 @@
#!/bin/sh --
# $Id$
# Small shell script to build gd from CVS
# allow importing from the environment, e.g.
# "AUTOCONF=autoconf259 ... ./bootstrap.sh"
ACLOCAL=${ACLOCAL:-aclocal}
AUTOCONF=${AUTOCONF:-autoconf}
AUTOHEADER=${AUTOHEADER:-autoheader}
AUTOMAKE=${AUTOMAKE:-automake}
# might handle this differently
AUTOMAKE_FLAGS="--add-missing --copy"
#
CLEANFILES="Makefile Makefile.in aclocal.m4 autom4te.cache config.h config.log \
config.status configure libtool config/Makefile config/Makefile.in \
config/gdlib-config tests/Makefile tests/Makefile.in"
#
rm -rf ${CLEANFILES}
#
if ${ACLOCAL} \
&& ${AUTOHEADER} \
&& ${AUTOMAKE} ${AUTOMAKE_FLAGS} \
&& ${AUTOCONF} && [ -f configure ]
then
echo Now run configure and make
else
echo Failed
exit 1
fi
exit 0