summaryrefslogtreecommitdiff
path: root/run
diff options
context:
space:
mode:
Diffstat (limited to 'run')
-rw-r--r--run18
1 files changed, 18 insertions, 0 deletions
diff --git a/run b/run
new file mode 100644
index 0000000..2237ab5
--- /dev/null
+++ b/run
@@ -0,0 +1,18 @@
+#!/bin/sh
+if [ "$2" = "" ]; then
+ tocf=test.toc
+else
+ tocf="$2"
+fi
+if [ "$1" = "noq" ]; then
+ FLAGS=
+else
+ FLAGS="-q"
+fi
+
+./toc $tocf || exit 1
+if [ "$1" = "c" ]; then
+ gcc out.c -g -Wno-builtin-declaration-mismatch && ./a.out
+elif [ "$1" = "pc" ]; then
+ cat out.c
+fi