~rabbits/nasu

ref: 5f5c3be5e865176a07ed09589219bb5b9440c79a nasu/build.sh -rwxr-xr-x 551 bytes
5f5c3be5Devine Lu Linvega Updated README 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.."
uxn11 bin/nasu.rom ako10x10.chr