29 lines
306 B
Bash
Executable File
29 lines
306 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
ASM="uxnasm"
|
|
EMU="uxnemu"
|
|
LIN="uxncli $HOME/roms/uxnlin.rom"
|
|
|
|
SRC="loader.tal"
|
|
DST="loader.rom"
|
|
CPY="$HOME/roms"
|
|
ARG=""
|
|
|
|
# special
|
|
$ASM polycat.tal polycat.rom
|
|
|
|
if [[ "$*" == *"--lint"* ]]
|
|
then
|
|
$LIN $SRC
|
|
fi
|
|
|
|
$ASM $SRC $DST
|
|
|
|
if [[ "$*" == *"--save"* ]]
|
|
then
|
|
cp $DST $CPY
|
|
fi
|
|
|
|
$EMU $DST $ARG
|
|
|