From: Colin Patrick McCabe Date: Fri, 25 Mar 2011 22:59:58 +0000 (-0700) Subject: Add go-test.sh X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47899a1a14919579f02985c31f759abb692a9a9b;p=cmccabe-bin Add go-test.sh Signed-off-by: Colin McCabe --- diff --git a/go-test.sh b/go-test.sh new file mode 100755 index 0000000..b14ec13 --- /dev/null +++ b/go-test.sh @@ -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