]> git.draconx.ca Git - cdecl99.git/blob - bootstrap
Make fix-gnulib only need a single output file.
[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 : ${PERL=perl}
10
11 $GIT submodule update --init \
12         || echo "Failed to update Gnulib sources from git."
13
14 if test -x $GNULIB/gnulib-tool; then
15         $GNULIB/gnulib-tool --update -S || die "Failed to update Gnulib."
16 else
17         die "Gnulib sources are not properly installed in gnulib/."
18 fi
19
20 $PERL fix-gnulib.pl -o lib/gnulib.mk -i lib/gnulib.mk.in \
21         || die "Failed to fixup Gnulib makefile fragment."
22
23 $AUTORECONF -fis