[hackers] [scc] Simplify cc1/tests/update.sh || Roberto E. Vargas Caballero
commit 9bf16fdaec39d2cde807c8408532f9535e29652e
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Tue Nov 24 13:24:20 2015 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
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
_AT_@ -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
_AT_@ -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
Received on Tue Nov 24 2015 - 13:26:26 CET
This archive was generated by hypermail 2.3.0
: Tue Nov 24 2015 - 13:36:12 CET