commit 9bf16fdaec39d2cde807c8408532f9535e29652e
Author:     Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Tue Nov 24 13:24:20 2015 +0100
Commit:     Roberto E. Vargas Caballero <[email protected]>
CommitDate: Tue Nov 24 13:24:20 2015 +0100

    Simplify cc1/tests/update.sh
    
    The function is not needed because it is called only
    from one place.

diff --git a/cc1/tests/update.sh b/cc1/tests/update.sh
index fb10641..36fe2e3 100755
--- a/cc1/tests/update.sh
+++ b/cc1/tests/update.sh
@@ -1,12 +1,5 @@
 #!/bin/sh
 
-update()
-{
-       (echo '/^output/+;/^\*\//-c'
-       ../cc1 -I./ -w $1 2>&1
-       printf ".\nw\n") | ed -s $1
-}
-
 case $# in
 0)
        echo "usage: update.sh test ..." >&2
@@ -15,7 +8,9 @@ case $# in
 *)
        for i
        do
-               update $i
+               (echo '/^output/+;/^\*\//-c'
+               ../cc1 -I./ -w $1 2>&1
+               printf ".\nw\n") | ed -s $1
        done
        ;;
 esac

Reply via email to