diff options
author | Jim Meyering <meyering@redhat.com> | 2010-04-30 18:46:27 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2010-04-30 18:56:15 +0200 |
commit | 5c63f4d41638b863f5c5a71401af6e1c042d223d (patch) | |
tree | 04c5ceb4e8790c0b6e2449613d624a90ab870987 | |
parent | 7ea9bf381b354cbf5e05ab89e0ee2009162bc09a (diff) | |
download | diffutils-5c63f4d41638b863f5c5a71401af6e1c042d223d.tar.gz |
build: update gnulib submodule to latest
* bootstrap: Also update from gnulib.
* tests/init.sh: Likewise
-rwxr-xr-x | bootstrap | 10 | ||||
m--------- | gnulib | 0 | ||||
-rw-r--r-- | tests/init.sh | 8 |
3 files changed, 10 insertions, 8 deletions
@@ -1,6 +1,6 @@ #! /bin/sh # Print a version string. -scriptversion=2010-02-24.17; # UTC +scriptversion=2010-04-30.16; # UTC # Bootstrap this package from checked-out sources. @@ -424,7 +424,7 @@ case ${GNULIB_SRCDIR--} in trap cleanup_gnulib 1 2 13 15 - git clone --help|grep depth > /dev/null && shallow='--depth 2' || shallow= + git clone -h|grep -- --depth > /dev/null && shallow='--depth 2' || shallow= git clone $shallow git://git.sv.gnu.org/gnulib "$gnulib_path" || cleanup_gnulib @@ -437,7 +437,7 @@ case ${GNULIB_SRCDIR--} in if test -d "$GNULIB_SRCDIR"/.git && \ git_modules_config submodule.gnulib.url >/dev/null; then echo "$0: getting gnulib files..." - if git submodule --help|grep reference > /dev/null; then + if git submodule -h|grep -- --reference > /dev/null; then # Prefer the one-liner available in git 1.6.4 or newer. git submodule update --init --reference "$GNULIB_SRCDIR" \ "$gnulib_path" || exit $? @@ -819,7 +819,7 @@ if test $with_gettext = yes; then a\ '"$XGETTEXT_OPTIONS"' $${end_of_xgettext_options+} } - ' po/Makevars.template >po/Makevars + ' po/Makevars.template >po/Makevars || exit 1 if test -d runtime-po; then # Similarly for runtime-po/Makevars, but not quite the same. @@ -833,7 +833,7 @@ if test $with_gettext = yes; then a\ '"$XGETTEXT_OPTIONS_RUNTIME"' $${end_of_xgettext_options+} } - ' <po/Makevars.template >runtime-po/Makevars + ' po/Makevars.template >runtime-po/Makevars || exit 1 # Copy identical files from po to runtime-po. (cd po && cp -p Makefile.in.in *-quot *.header *.sed *.sin ../runtime-po) diff --git a/gnulib b/gnulib -Subproject e764ea2fcb9a6247ae4dc0d4c0566b43d950a69 +Subproject 0c6cf5ab43555377b99d94febb2d6f23fc3d2cb diff --git a/tests/init.sh b/tests/init.sh index ee9c542..512e876 100644 --- a/tests/init.sh +++ b/tests/init.sh @@ -225,10 +225,12 @@ setup_() || fail_ "failed to create temporary directory in $initial_cwd_" cd "$test_dir_" - # This pair of trap statements ensures that the temporary directory, - # $test_dir_, is removed upon exit as well as upon catchable signal. + # These trap statements ensure that the temporary directory, $test_dir_, + # is removed upon exit as well as upon receipt of any of the listed signals. trap remove_tmp_ 0 - trap 'Exit $?' 1 2 13 15 + for sig_ in 1 2 3 13 15; do + eval "trap 'Exit $(expr $sig_ + 128)' $sig_" + done } # Create a temporary directory, much like mktemp -d does. |