summaryrefslogtreecommitdiff
path: root/makeSummerSun
blob: a8b665ba76eb12fac0e7550fdb54e7328e905da2 (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

rm ~/Dropbox/NEWERsmbw/Summer\ Sun/SystemEU_1.bin
rm ~/Dropbox/NEWERsmbw/Summer\ Sun/DLCodeEU_1.bin
rm ~/Dropbox/NEWERsmbw/Summer\ Sun/DLRelocsEU_1.bin

rm ~/Dropbox/NEWERsmbw/Summer\ Sun/SystemUS_1.bin
rm ~/Dropbox/NEWERsmbw/Summer\ Sun/DLCodeUS_1.bin
rm ~/Dropbox/NEWERsmbw/Summer\ Sun/DLRelocsUS_1.bin

rm ~/Dropbox/NEWERsmbw/Summer\ Sun/SystemUS_2.bin
rm ~/Dropbox/NEWERsmbw/Summer\ Sun/DLCodeUS_2.bin
rm ~/Dropbox/NEWERsmbw/Summer\ Sun/DLRelocsUS_2.bin

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

mv NewerASM/pal_loader.bin ~/Dropbox/NEWERsmbw/Summer\ Sun/SystemEU_1.bin
mv NewerASM/pal_dlcode.bin ~/Dropbox/NEWERsmbw/Summer\ Sun/DLCodeEU_1.bin
mv NewerASM/pal_dlrelocs.bin ~/Dropbox/NEWERsmbw/Summer\ Sun/DLRelocsEU_1.bin

mv NewerASM/ntsc_loader.bin ~/Dropbox/NEWERsmbw/Summer\ Sun/SystemUS_1.bin
mv NewerASM/ntsc_dlcode.bin ~/Dropbox/NEWERsmbw/Summer\ Sun/DLCodeUS_1.bin
mv NewerASM/ntsc_dlrelocs.bin ~/Dropbox/NEWERsmbw/Summer\ Sun/DLRelocsUS_1.bin

mv NewerASM/ntsc2_loader.bin ~/Dropbox/NEWERsmbw/Summer\ Sun/SystemUS_2.bin
mv NewerASM/ntsc2_dlcode.bin ~/Dropbox/NEWERsmbw/Summer\ Sun/DLCodeUS_2.bin
mv NewerASM/ntsc2_dlrelocs.bin ~/Dropbox/NEWERsmbw/Summer\ Sun/DLRelocsUS_2.bin

echo Built all!