diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2013-03-08 08:40:26 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2013-03-08 08:40:50 -0800 |
commit | 26c4b323bf8508a942acb521566c3a0c4309fbff (patch) | |
tree | 92bcf9824e5d3c01b251a26d9f44f0321c67e79f | |
parent | 951e33a41cce0f553befee73311ac0af188ef239 (diff) | |
download | gnulib-26c4b323bf8508a942acb521566c3a0c4309fbff.tar.gz |
bootstrap: port to FreeBSD
* build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
that treat '--' differently. Reported by Mats Erik Andersson in
<http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
-rw-r--r-- | ChangeLog | 7 | ||||
-rwxr-xr-x | build-aux/bootstrap | 8 |
2 files changed, 13 insertions, 2 deletions
@@ -1,3 +1,10 @@ +2013-03-08 Paul Eggert <eggert@cs.ucla.edu> + + bootstrap: port to FreeBSD + * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells + that treat '--' differently. Reported by Mats Erik Andersson in + <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>. + 2013-03-08 Gary V. Vaughan <gary@gnu.org> regex: rename remaining __attribute calls to __attribute__. diff --git a/build-aux/bootstrap b/build-aux/bootstrap index bee7765fed..96f1e76252 100755 --- a/build-aux/bootstrap +++ b/build-aux/bootstrap @@ -1,6 +1,6 @@ #! /bin/sh # Print a version string. -scriptversion=2013-01-20.16; # UTC +scriptversion=2013-03-08.16; # UTC # Bootstrap this package from checked-out sources. @@ -630,9 +630,13 @@ esac if $bootstrap_sync; then cmp -s "$0" "$GNULIB_SRCDIR/build-aux/bootstrap" || { echo "$0: updating bootstrap and restarting..." + case $(sh -c 'echo "$1"' -- a) in + a) ignored=--;; + *) ignored=ignored;; + esac exec sh -c \ 'cp "$1" "$2" && shift && exec "${CONFIG_SHELL-/bin/sh}" "$@"' \ - -- "$GNULIB_SRCDIR/build-aux/bootstrap" \ + $ignored "$GNULIB_SRCDIR/build-aux/bootstrap" \ "$0" "$@" --no-bootstrap-sync } fi |