commit 9bf16fdaec39d2cde807c8408532f9535e29652e parent 91f062f5101b968503bf034bf720cc7e7c7a2dc3 Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Tue, 24 Nov 2015 13:24:20 +0100 Simplify cc1/tests/update.sh The function is not needed because it is called only from one place. Diffstat:
M | cc1/tests/update.sh | | | 11 | +++-------- |
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git 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