+2006-08-31  Bruno Haible  <bruno@clisp.org>
+
+       * gnulib-tool: When calling func_import more than once, do it in a
+       subshell.
+       Reported by Eric Blake <ebb9@byu.net>.
+
 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
 
        * modules/nanosleep (Depends-on): Add gettime.
 
 
 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'`
 
           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.