diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2015-02-17 09:04:19 +0000 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2015-02-17 09:04:49 +0000 |
commit | 7e845c9e9c36608956fe19cea7e2f1811476a309 (patch) | |
tree | e1684deedfaa6df4972a079c54767033f15646f7 /bootstrap.sh | |
parent | 3aa0e8c6f10c648921d23853c284e3d75bdd082c (diff) | |
download | autoconf-archive-7e845c9e9c36608956fe19cea7e2f1811476a309.tar.gz |
bootstrap.sh: Support a --copy option to automatically clone gnulib
When building autoconf-archive using build bots or JHBuild, it is quite
desirable to have a single command which will bootstrap the entire build
process, up to the point where `make` can be run.
bootstrap.sh is supposed to do this, but will fail if gnulib is not
present. Add a --copy option which will automatically clone gnulib into
the source directory if it’s not present.
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-x | bootstrap.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bootstrap.sh b/bootstrap.sh index 9fdbccd..d14495c 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -2,6 +2,10 @@ set -eu +if [ ! -d "gnulib" ] && [ $# -gt 0 ] && [ "$1" = "--copy" ]; then + git clone git://git.savannah.gnu.org/gnulib.git gnulib +fi + if [ -x "gnulib/gnulib-tool" ]; then gnulibtool=gnulib/gnulib-tool else |