Add go-test.sh
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Fri, 25 Mar 2011 22:59:58 +0000 (15:59 -0700)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Fri, 25 Mar 2011 22:59:58 +0000 (15:59 -0700)
Signed-off-by: Colin McCabe <cmccabe@alumni.cmu.edu>

go-test.sh [new file with mode: 0755]

diff --git a/go-test.sh b/go-test.sh
new file mode 100755 (executable)
index 0000000..b14ec13
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+die() {
+        echo $@
+        exit 1
+}
+
+which 6g >/dev/null || die "6g not installed"
+which 6l >/dev/null || die "6l not installed"
+
+PFILE="${1}"
+[ -e "${PFILE}" ] || die "couldn't find file \"${PFILE}\""
+6g "${PFILE}" || die "6g failed"
+6l "${PFILE}" || die "6g failed"
+exit 0