2015-10-17 11:28:39 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2018-02-08 14:20:17 +00:00
|
|
|
if [ "X$X64" = "X" ]; then
|
|
|
|
X64=x64
|
|
|
|
fi
|
2015-10-17 11:28:39 +00:00
|
|
|
SRC=$1
|
2017-12-11 15:21:40 +00:00
|
|
|
if [ "X$1" = "X" ]; then
|
|
|
|
echo "Usage: ./loadngo.sh <source.60p>"
|
|
|
|
exit 1
|
|
|
|
fi
|
2015-10-17 11:28:39 +00:00
|
|
|
OUT=/tmp/a-out.prg
|
2018-02-06 16:35:38 +00:00
|
|
|
bin/sixtypical --traceback --basic-prelude $SRC > $OUT || exit 1
|
2017-12-07 16:49:43 +00:00
|
|
|
if [ -e vicerc ]; then
|
2018-02-08 14:20:17 +00:00
|
|
|
$X64 -config vicerc $OUT
|
2017-12-07 16:49:43 +00:00
|
|
|
else
|
2018-02-08 14:20:17 +00:00
|
|
|
$X64 $OUT
|
2017-12-07 16:49:43 +00:00
|
|
|
fi
|
2015-10-17 11:28:39 +00:00
|
|
|
rm -f $OUT
|