From: Eric Blake Date: Mon, 25 Sep 2006 21:20:54 +0000 (+0000) Subject: * gnulib-tool (func_import, func_create_testdir): Fix typos in X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae56275c31a91619afe5db5592c74342fd47599b;p=pspp * gnulib-tool (func_import, func_create_testdir): Fix typos in 2006-09-18 patch. --- diff --git a/ChangeLog b/ChangeLog index 7645664fae..6d8a76f476 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-09-25 Eric Blake + + * gnulib-tool (func_import, func_create_testdir): Fix typos in + exec's in 2006-09-18 patch when shuffling fds. + 2006-09-25 Ralf Wildenhues * modules/clock-time: New module. diff --git a/gnulib-tool b/gnulib-tool index 7ebd3cf610..a6a29d3110 100755 --- a/gnulib-tool +++ b/gnulib-tool @@ -22,7 +22,7 @@ progname=$0 package=gnulib -cvsdatestamp='$Date: 2006-09-22 15:43:18 $' +cvsdatestamp='$Date: 2006-09-25 21:20:54 $' last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$[D]ate: ,,'` version=`echo "$last_checkin_date" | sed -e 's/ .*$//' -e 's,/,-,g'` nl=' @@ -1691,11 +1691,11 @@ func_import () | sed -e "s,^.*\$,&$delimiter&," -e "$sed_rewrite_new_files" > "$tmp"/added-files { # Rearrange file descriptors. Needed because "while ... done < ..." # constructs are executed in a subshell e.g. by Solaris 10 /bin/sh. - exec 5<&1 < "$tmp"/added-files + exec 5<&0 < "$tmp"/added-files while read g f; do func_add_or_update done - exec 1<&5 5<&- + exec <&5 5<&- } # Then the files that are in new-files and in old-files: already_present=true @@ -1704,11 +1704,11 @@ func_import () | sed -e "s,^.*\$,&$delimiter&," -e "$sed_rewrite_new_files" > "$tmp"/kept-files { # Rearrange file descriptors. Needed because "while ... done < ..." # constructs are executed in a subshell e.g. by Solaris 10 /bin/sh. - exec 5<&1 < "$tmp"/kept-files + exec 5<&0 < "$tmp"/kept-files while read g f; do func_add_or_update done - exec 1<&5 5<&- + exec <&5 5<&- } # Command-line invocation printed in a comment in generated gnulib-cache.m4. @@ -2099,7 +2099,7 @@ func_create_testdir () > "$tmp"/files { # Rearrange file descriptors. Needed because "while ... done < ..." # constructs are executed in a subshell e.g. by Solaris 10 /bin/sh. - exec 5<&1 < "$tmp"/files + exec 5<&0 < "$tmp"/files while read g f; do func_lookup_file "$f" if test -n "$lookedup_tmp"; then @@ -2113,7 +2113,7 @@ func_create_testdir () fi fi done - exec 1<&5 5<&- + exec <&5 5<&- } # Create $sourcebase/Makefile.am.