33 lines
425 B
Bash
33 lines
425 B
Bash
|
#!/bin/sh -e
|
||
|
|
||
|
ASM="uxncli $HOME/roms/drifblim.rom"
|
||
|
EMU="uxncli"
|
||
|
LIN="uxncli $HOME/roms/uxnlin.rom"
|
||
|
|
||
|
SRC="checksum.tal"
|
||
|
DST="checksum.rom"
|
||
|
|
||
|
CPY="$HOME/roms"
|
||
|
ARG="test.txt"
|
||
|
|
||
|
echo ">> Cleaning"
|
||
|
|
||
|
if [[ "$*" == *"--lint"* ]]
|
||
|
then
|
||
|
echo ">> Linting $SRC"
|
||
|
$LIN $SRC
|
||
|
fi
|
||
|
|
||
|
echo ">> Assembling $SRC"
|
||
|
$ASM $SRC $DST
|
||
|
|
||
|
if [[ "$*" == *"--save"* ]]
|
||
|
then
|
||
|
echo ">> Saving $DST"
|
||
|
cp $DST $CPY
|
||
|
fi
|
||
|
|
||
|
echo ">> Running $DST"
|
||
|
$EMU $DST $ARG
|
||
|
|