summaryrefslogtreecommitdiff
path: root/makeSummerSun
diff options
context:
space:
mode:
authorColin Noga <Tempus@chronometry.ca>2012-07-07 23:36:44 -0500
committerColin Noga <Tempus@chronometry.ca>2012-07-07 23:36:44 -0500
commit13d1b791d14695dab43033d171bb6f161bd04fc5 (patch)
tree492cb8a25e070805ec4073f0c32a9cc593156577 /makeSummerSun
parentc6ad18e5f0cf1b627d850fa3101a8c78648ff452 (diff)
parent613e30a894cddcdc11c8da140bae35090247c8ec (diff)
downloadkamek-13d1b791d14695dab43033d171bb6f161bd04fc5.tar.gz
kamek-13d1b791d14695dab43033d171bb6f161bd04fc5.zip
merge
Diffstat (limited to '')
-rwxr-xr-xmakeSummerSun52
1 files changed, 22 insertions, 30 deletions
diff --git a/makeSummerSun b/makeSummerSun
index 5add3fb..89a2f4a 100755
--- a/makeSummerSun
+++ b/makeSummerSun
@@ -1,21 +1,17 @@
#!/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
-
-rm ~/Dropbox/NEWERsmbw/Summer\ Sun/SystemJP_1.bin
-rm ~/Dropbox/NEWERsmbw/Summer\ Sun/DLCodeJP_1.bin
-rm ~/Dropbox/NEWERsmbw/Summer\ Sun/DLRelocsJP_1.bin
+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
@@ -25,21 +21,17 @@ 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
-
-mv NewerASM/jpn_loader.bin ~/Dropbox/NEWERsmbw/Summer\ Sun/SystemJP_1.bin
-mv NewerASM/jpn_dlcode.bin ~/Dropbox/NEWERsmbw/Summer\ Sun/DLCodeJP_1.bin
-mv NewerASM/jpn_dlrelocs.bin ~/Dropbox/NEWERsmbw/Summer\ Sun/DLRelocsJP_1.bin
+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!