~rabbits/left

ref: e09515cc0887e279ba881781a84dec341c50c0bb left/build.sh -rwxr-xr-x 478 bytes
e09515ccneauoire Fixed issue with syntax highlight 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env bash

echo "Cleaning.."
rm -rf bin
mkdir bin

echo "Assembling.."
cat src/main.tal src/assets.tal > src/left.tal
uxnasm src/left.tal bin/left.rom 
rm src/left.tal

echo "Installing.."
if [ -d "$HOME/roms" ] && [ -e ./bin/left.rom ]
then
	cp ./bin/left.rom $HOME/roms
    echo "Installed in $HOME/roms" 
fi

if [ "${1}" = '--push' ]; 
then
	echo "Pushing.."
	~/Applications/butler push bin/left.rom hundredrabbits/left:uxn
fi

echo "Running.."
uxnemu bin/left.rom