mirror of
https://github.com/jeremysrand/Apple2GSBuildPipeline.git
synced 2024-12-22 16:30:49 +00:00
19 lines
321 B
Plaintext
19 lines
321 B
Plaintext
|
#!/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
|