Makefile: add pickrand
[cmccabe-bin] / go-test.sh
1 #!/bin/sh
2
3 die() {
4         echo $@
5         exit 1
6 }
7
8 which 6g >/dev/null || die "6g not installed"
9 which 6l >/dev/null || die "6l not installed"
10
11 PFILE="${1}"
12 [ -e "${PFILE}" ] || die "couldn't find file \"${PFILE}\""
13 6g "${PFILE}" || die "6g failed"
14 6l "${PFILE}" || die "6g failed"
15 exit 0