]> git.ozlabs.org Git - next-scripts/commitdiff
make_tree_file: stop IFS change from affecting the rest of the script
authorStephen Rothwell <sfr@canb.auug.org.au>
Tue, 5 Mar 2013 01:37:50 +0000 (12:37 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 5 Mar 2013 01:37:50 +0000 (12:37 +1100)
make_tree_file

index c14a6dad62709eb6cd1f754e879ccf72c0d53a06..9c5bdb2ef93bb3ac7b03436cdb839e98c083c62e 100755 (executable)
@@ -22,6 +22,7 @@ echo 'Trees included into this release:
 Name           Type    URL
 ----           ----    ---' > Next/Trees
 
+(
 IFS='  '
 while read email type name url ref build; do
        [[ "$email" =~ '^#.*$' ]] && continue
@@ -29,8 +30,9 @@ while read email type name url ref build; do
        [ $(echo "$name" | wc -c) -le 8 ] && tab="\t\t"
        [ "${ref%:*}" = "${ref}" ] || ref=${ref##*:}
        [ "$type" = "git" ] && url="$url#$ref"
-       printf "%s$tab%s\t%s\n" $name $type $url
-done <../real_control >>Next/Trees
+       printf "%s$tab%s\t%s\n" $name $type $url >>Next/Trees
+done <../real_control
+)
 
 mv ../SHA1s Next/SHA1s