36 lines
464 B
Bash
Executable File
36 lines
464 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
ASM="uxncli $HOME/roms/drifblim.rom"
|
|
EMU="uxnemu"
|
|
LIN="uxncli $HOME/roms/uxnlin.rom"
|
|
APP="$HOME/bin/butler push"
|
|
|
|
SRC="soroban.tal"
|
|
DST="soroban.rom"
|
|
|
|
CPY="$HOME/roms"
|
|
ARG=""
|
|
|
|
echo ">> Cleaning"
|
|
rm -rf bin
|
|
mkdir bin
|
|
|
|
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
|
|
|