shithub: scc

Download patch

ref: 398df28c10917d7e9e07f6d02c234a582ac94122
parent: d3344817e4d71f8bebc20ea57eace1ac53e5cc3d
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Fri Oct 16 07:14:26 EDT 2015

Accept list of tests in update.sh

--- a/cc1/tests/update.sh
+++ b/cc1/tests/update.sh
@@ -7,20 +7,15 @@
 	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