~rabbits/orca-toy

cd2bec22a50984d170d05ca0c8cb635ff51027dd — neauoire 5 months ago 379085b
Added push to build
1 files changed, 10 insertions(+), 4 deletions(-)

M build.sh
M build.sh => build.sh +10 -4
@@ 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