~rabbits/nasu

ref: 3795d9ae22d2aa3b4d8b58c135a52ba5cf1329d0 nasu/build.sh -rwxr-xr-x 552 bytes
3795d9aeDevine Lu Linvega Draw menu 3 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
27
28
29
30
#!/bin/sh -e

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

if [ -e "$HOME/roms/uxnlin.rom" ]
then
	echo "Linting.."
	uxncli $HOME/roms/uxnlin.rom src/nasu.tal
	uxncli $HOME/roms/uxnlin.rom src/manifest.tal
fi

echo "Assembling.."
uxnasm src/nasu.tal bin/nasu.rom 

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

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

echo "Running.."
uxnemu bin/nasu.rom ako10x10.chr