From: Nick Bowler Date: Sun, 18 Sep 2011 23:32:54 +0000 (-0400) Subject: Allow bootstrap tools to be overridden via environment variables. X-Git-Tag: v1~112 X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/commitdiff_plain/f0d9cb41333a2930e73cd2e31e0c0aaa855ffd21 Allow bootstrap tools to be overridden via environment variables. Useful if you want to use a different installed version of autoreconf, for instance. --- diff --git a/bootstrap b/bootstrap index f0e1d0d..94d0bc8 100755 --- a/bootstrap +++ b/bootstrap @@ -3,11 +3,17 @@ trap 'exit 1' USR1 die() { printf '%s\n' "$@" 1>&2; kill -USR1 $$; } -git submodule update --init || echo "Failed to update Gnulib sources from git." -if test -x ./gnulib/gnulib-tool; then - ./gnulib/gnulib-tool --update -S || die "Failed to update Gnulib." +: ${AUTORECONF=autoreconf} +: ${GNULIB=gnulib} +: ${GIT=git} + +$GIT submodule update --init \ + || echo "Failed to update Gnulib sources from git." + +if test -x $GNULIB/gnulib-tool; then + $GNULIB/gnulib-tool --update -S || die "Failed to update Gnulib." else die "Gnulib sources are not properly installed in gnulib/." fi -autoreconf -fis +$AUTORECONF -fis