scripts: Remove useless 'gorun'

master
Pierre Neidhardt 2014-10-19 19:21:16 +02:00
parent 75119a02c8
commit 1aa3c130f9
1 changed files with 0 additions and 25 deletions

View File

@ -1,25 +0,0 @@
#!/bin/sh
if [ $# -lt 1 ]; then
cat<<EOF
Usage: ${0##*/} FILE [FLAGS]
Simulate a C interpreter by compiling, executing and removing file in one run.
EOF
exit
fi
GC="go build"
INPUT="$1"
shift
[ $# -ne 0 ] && FLAGS="$@"
FILE="$(mktemp)"
echo "==> $GC -o \"$FILE\" $FLAGS \"$INPUT\""
$GC -o "$FILE" $FLAGS "$INPUT"
echo "==> $FILE"
"$FILE"
rm "$FILE"