summaryrefslogtreecommitdiff
path: root/makeSummerSun
blob: 4927ec4eeaf69a9f5977db0b5e3e969dd37ee24d (plain)
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
31
32
33
34
35
36
37
#!/bin/sh
rm -r ~/.wine

remove_files() {
	rm "~/Dropbox/NEWERsmbw/Summer\ Sun/System$1.bin"
	rm "~/Dropbox/NEWERsmbw/Summer\ Sun/DLCode$1.bin"
	rm "~/Dropbox/NEWERsmbw/Summer\ Sun/DLRelocs$1.bin"
}

remove_files EU_1
remove_files EU_2
remove_files US_1
remove_files US_2
remove_files JP_1

python tools/mapfile_tool.py
python tools/kamek.py SummerSun.yaml --no-rels --use-mw --use-wine --gcc-type=/usr/local/devkitPRO/devkitPPC/bin/powerpc-eabi --mw-path=tools
if [ "$?" = "0" ]; then
	echo "compile successful"
else
	exit 1
fi

copy_files() {
	cp NewerASM/n_$1_loader.bin "~/Dropbox/NEWERsmbw/Summer\ Sun/System$2.bin"
	cp NewerASM/n_$1_dlcode.bin "~/Dropbox/NEWERsmbw/Summer\ Sun/DLCode$2.bin"
	cp NewerASM/n_$1_dlrelocs.bin "~/Dropbox/NEWERsmbw/Summer\ Sun/DLRelocs$2.bin"
}

copy_files pal EU_1
copy_files pal2 EU_2
copy_files ntsc US_1
copy_files ntsc2 US_2
copy_files jpn JP_1

echo Built all!