Mercurial > hg > octave-lojdl > gnulib-hg
diff gnulib-tool @ 7239:e6f5fe9992ff
Fix problem when calling "gnulib-tool --update" on multiple directories.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Thu, 31 Aug 2006 13:11:23 +0000 |
parents | 3dbbe645b976 |
children | e9d3ace50303 |
line wrap: on
line diff
--- a/gnulib-tool +++ b/gnulib-tool @@ -22,7 +22,7 @@ progname=$0 package=gnulib -cvsdatestamp='$Date: 2006-08-30 18:13:34 $' +cvsdatestamp='$Date: 2006-08-31 13:11:23 $' last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$[D]ate: ,,'` version=`echo "$last_checkin_date" | sed -e 's/ .*$//' -e 's,/,-,g'` @@ -2417,7 +2417,12 @@ if test $# = 0; then # No further arguments. Guess the user wants to update all of them. for m4base in $m4dirs; do - func_import + # Perform func_import in a subshell, so that variable values + # such as + # local_gnulib_dir, avoidlist, sourcebase, m4base, docbase, + # testsbase, libname, lgpl, makefile_name, libtool, macro_prefix + # don't propagate from one directory to another. + (func_import) || exit 1 done else # Really ambiguous.