commit 398df28c10917d7e9e07f6d02c234a582ac94122 parent d3344817e4d71f8bebc20ea57eace1ac53e5cc3d Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Fri, 16 Oct 2015 11:14:26 +0200 Accept list of tests in update.sh Diffstat:
M | cc1/tests/update.sh | | | 21 | ++++++++------------- |
1 file changed, 8 insertions(+), 13 deletions(-)
diff --git a/cc1/tests/update.sh b/cc1/tests/update.sh @@ -7,20 +7,15 @@ update() printf ".\nw\n") | ed -s $1 } - case $# in -1) - update $1 - exit - ;; -*) - echo "usage: update.sh [test]" >&2 +0) + echo "usage: update.sh test ..." >&2 exit 1 ;; +1) + for i + do + update $1 + done + ;; esac - - -for i in *.c -do - update $i -done