1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
#!/usr/bin/env bash
# For the lazy people, this does all the auto* stuff needed before
# ./configure && make will work
# (This is a maintainer script; it should never have to be run on
# a distributed tarball)
set -e
if [ -f development ]
then
# Symlinks
${ACLOCAL:-aclocal} -I autoconf
${AUTOHEADER:-autoheader}
${AUTOMAKE:-automake} -a
${AUTOCONF:-autoconf}
else
# No symlinks
${ACLOCAL:-aclocal} -I autoconf
${AUTOHEADER:-autoheader}
${AUTOMAKE:-automake} -a -c
${AUTOCONF:-autoconf}
fi
# If it exists and is executable, recheck and regenerate
test -x config.status && ./config.status --recheck
test -x config.status && ./config.status
# Exit true if we got this far
exit 0
|