mirror of
https://github.com/jeremysrand/Apple2GSBuildPipeline.git
synced 2024-12-01 14:50:19 +00:00
19 lines
321 B
Bash
Executable File
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
|