Apple2GSBuildPipeline/make/orca-asm

19 lines
321 B
Plaintext
Raw Normal View History

2017-05-17 02:34:15 +00:00
#!/bin/bash
FILENAME="$1"
shift
if echo $FILENAME | grep -v '\.s$' > /dev/null
then
echo Expected first argument to be a *.s file but got $FILENAME
exit 1
fi
DIRNAME=`dirname $FILENAME`
BASENAME=`basename $FILENAME .s`
cd "$DIRNAME"
$ORCA assemble $* keep="${BASENAME}" "${BASENAME}.s"
RESULT=$?
exit $RESULT