Apple2GSBuildPipeline/make/orca-asm
2017-05-16 22:34:15 -04:00

19 lines
321 B
Bash
Executable File

#!/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