32 lines
533 B
Bash
Executable File
32 lines
533 B
Bash
Executable File
#!/bin/sh
|
|
|
|
ID="arvelie"
|
|
ASM="uxncli $HOME/roms/drifblim.rom"
|
|
EMU="uxncli"
|
|
LIN="uxncli $HOME/roms/uxnlin.rom"
|
|
SRC="${ID}.tal"
|
|
DST="${ID}.rom"
|
|
CPY="$HOME/roms"
|
|
ARG=""
|
|
|
|
if [[ "$*" == *"--lint"* ]]
|
|
then
|
|
$LIN $SRC
|
|
fi
|
|
|
|
$ASM $SRC $DST
|
|
|
|
if [[ "$*" == *"--save"* ]]
|
|
then
|
|
cp $DST $CPY
|
|
fi
|
|
|
|
printf "today "; $EMU $DST
|
|
printf "gre->arv "; $EMU $DST "2023-05-25"
|
|
printf "arv->gre "; $EMU $DST "17K04"
|
|
printf "error "; $EMU $DST "abc"
|
|
echo ""
|
|
printf "00A00 -> "; $EMU $DST "2016-01-01"
|
|
printf "01B00 -> "; $EMU $DST "2017-01-15"
|
|
|