]> git.draconx.ca Git - cdecl99.git/blob - bootstrap
Allow bootstrap tools to be overridden via environment variables.
[cdecl99.git] / bootstrap
1 #!/bin/sh
2
3 trap 'exit 1' USR1
4 die() { printf '%s\n' "$@" 1>&2; kill -USR1 $$; }
5
6 : ${AUTORECONF=autoreconf}
7 : ${GNULIB=gnulib}
8 : ${GIT=git}
9
10 $GIT submodule update --init \
11         || echo "Failed to update Gnulib sources from git."
12
13 if test -x $GNULIB/gnulib-tool; then
14         $GNULIB/gnulib-tool --update -S || die "Failed to update Gnulib."
15 else
16         die "Gnulib sources are not properly installed in gnulib/."
17 fi
18
19 $AUTORECONF -fis