@@ 1,7 1,5 @@
#!/bin/sh -e
-# ~/Applications/butler push bin/orca.rom hundredrabbits/orca:uxn
-
ASM="uxncli $HOME/roms/drifblim.rom"
EMU="uxnemu"
LIN="uxncli $HOME/roms/uxnlin.rom"
@@ 10,9 8,11 @@ SRC="src/orca.tal"
DST="bin/orca.rom"
CPY="$HOME/roms"
-ETC="src/manifest.tal src/library"
ARG="etc/tests.orca"
+STORE="$HOME/Applications/butler push"
+STOREID="hundredrabbits/orca:uxn"
+
echo ">> Cleaning"
rm -rf bin
mkdir bin
@@ 20,7 20,7 @@ mkdir bin
if [[ "$*" == *"--lint"* ]]
then
echo ">> Linting $SRC"
- $LIN $SRC $ETC
+ $LIN $SRC
fi
echo ">> Assembling $SRC"
@@ 32,5 32,11 @@ then
cp $DST $CPY
fi
+if [[ "$*" == *"--push"* ]]
+then
+ echo ">> Pushing $DST"
+ $STORE $DST $STOREID
+fi
+
echo ">> Running $DST"
$EMU $DST $ARG