-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
49 lines (36 loc) · 1.29 KB
/
build.sh
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
#!/bin/sh
rm -rf tmp/
rm -rf output/
rm include/defines.h
make clean
mkdir tmp/
mkdir tmp/disc
# First, let's do the default build that will later be packed into the savegame.gci
echo "" >> include/defines.h
echo "#define builddate \""$(date)"\"" >> include/defines.h
make -j3
cp autoexec-ldr.dol tmp/
make clean
rm include/defines.h
# Now let's build the version that is designed to be booted of a burned mini DVD.
echo "#define BOOTDISK" >> include/defines.h
echo "#define builddate \""$(date)"\"" >> include/defines.h
make -j3
cp autoexec-ldr.dol tmp/disc/boot.dol
make clean
rm include/defines.h
# Finally build a version that is intended to be used as a IGR.dol for swiss. This one will do no printing to produce a smaller dol.
echo "#define IGR" >> include/defines.h
echo "#define builddate \""$(date)"\"" >> include/defines.h
make -j3
cp autoexec-ldr.dol tmp/igr.dol
make clean
rm include/defines.h
# Process the builds (compress them, create a bootable ISO image etc.)
mkdir output/
cp tmp/igr.dol output/igr.dol
wine tools/dollz3.exe tmp/autoexec-ldr.dol tmp/boot.dol
wine tools/dol2gci.exe tmp/boot.dol tmp/savegame.gci
cp tmp/savegame.gci output/savegame.gci
mkisofs -R -J -G data/gbi.hdr -no-emul-boot -b boot.dol -o tmp/autoexec-ldr.iso tmp/disc/
cp tmp/autoexec-ldr.iso output/autoexec-ldr.iso