summaryrefslogtreecommitdiff
path: root/makeNewerBeta
blob: 8f8e66584d875a64327a4ea6cca3afc8ae4c9227 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/sh

remove_files() {
	rm ~/Dropbox/Public/NewerBeta/NewerRes/System$1.bin
	rm ~/Dropbox/Public/NewerBeta/NewerRes/DLCode$1.bin
	rm ~/Dropbox/Public/NewerBeta/NewerRes/DLRelocs$1.bin
}

copy_files() {
	mv NewerASM/n_$1_loader.bin ~/Dropbox/Public/NewerBeta/NewerRes/System$2.bin
	mv NewerASM/n_$1_dlcode.bin ~/Dropbox/Public/NewerBeta/NewerRes/DLCode$2.bin
	mv NewerASM/n_$1_dlrelocs.bin ~/Dropbox/Public/NewerBeta/NewerRes/DLRelocs$2.bin
}



rm -r ~/Dropbox/Public/NewerBeta/*
cp -R ~/Dropbox/NEWERsmbw/Test\ Pack ~/Dropbox/Public/NewerBeta/Test\ Pack
mv ~/Dropbox/Public/NewerBeta/Test\ Pack/NewerSMBW/NewerRes ~/Dropbox/Public/NewerBeta/NewerRes

pushd ~/Dropbox/Public/NewerBeta/
zip -r9 TestPackAssetsRC$1.zip Test\ Pack
popd


for i in {1 .. 10}
	do

	remove_files EU_1
	remove_files EU_2
	remove_files US_1
	remove_files US_2
	remove_files JP_1
	remove_files JP_2

	rm ~/Dropbox/Public/NewerBeta/NewerRes/*

	python makeNewerBeta.py $1 $i
	python tools/mapfile_tool.py
	python tools/kamek.py NewerProjectKP.yaml --fast-hack --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 pal EU_1
	copy_files pal2 EU_2
	copy_files ntsc US_1
	copy_files ntsc2 US_2
	copy_files jpn JP_1
	copy_files jpn2 JP_2

	pushd ~/Dropbox/Public/NewerBeta/
	zip -r9 ~/Dropbox/Public/NewerBeta/TestPackBuildRC$1-$i.zip ~/Dropbox/Public/NewerBeta/NewerRes
	popd

	done


echo Built all!