-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
mk_kelf.sh
42 lines (34 loc) · 925 Bytes
/
mk_kelf.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
#!/bin/bash
make banner
DATE=$(date "+%d-%m-%Y")
SHA8=$(git rev-parse --short HEAD)
TARGET="PS2BBL_KELF-[$DATE]-[$SHA8]"
rm -rf kelf
rm -f PS2BBL_KELF.7z
mkdir -p kelf/MX4SIO
echo -- PS2
make clean kelf $* --silent
mv bin/PS2BBL_MC.KELF kelf/SYSTEM.XLF
make clean $* --silent
echo -- PSX
make clean kelf PSX=1 $* --silent
mv bin/PSXBBL_MC.KELF kelf/XSYSTEM.XLF
make clean PSX=1 $* --silent
echo -- PS2 + HDD
make clean kelf HDD=1 $* --silent
mv bin/PS2BBL_HDD.KELF kelf/HSYSTEM.XLF
make clean HDD=1 $* --silent
echo -- PS2 + MX4SIO
make clean kelf MX4SIO=1 $* --silent
mv bin/PS2BBL_MC.KELF kelf/MX4SIO/SYSTEM.XLF
make clean $* --silent
echo -- PSX + MX4SIO
make clean kelf PSX=1 MX4SIO=1 $* --silent
mv bin/PSXBBL_MC.KELF kelf/MX4SIO/XSYSTEM.XLF
make clean PSX=1 $* --silent
cp LICENSE kelf/LICENSE.TXT
cp README.md kelf/README.md
mv kelf/ $TARGET
7z a -t7z PS2BBL_KELF.7z "$TARGET/*"
rm -rf "$TARGET/"
echo "done!"