-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sh
executable file
·80 lines (64 loc) · 1.97 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#!/bin/sh
set -ex
if [ -n "$CHROOT" ]; then
export PKG_CMD="makechrootpkg -c -r $CHROOT --"
else
export PKG_CMD="makepkg"
fi
./build-archive.sh "$@"
cd n64graphics
$PKG_CMD -Cfs "$@"
cd ../qemu-irix
if [ -n "$CHROOT" ]; then
$PKG_CMD --noconfirm -Cfs "$@"
else
$PKG_CMD --noconfirm -Cfsi "$@"
fi
cd ../mips-n64-binutils
if [ -n "$CHROOT" ]; then
$PKG_CMD --noconfirm -Cfs "$@"
else
$PKG_CMD --noconfirm -Cfsi "$@"
fi
cd ../mips-n64-gcc-stage1
if [ -n "$CHROOT" ]; then
makechrootpkg -c -r $CHROOT -I ../mips-n64-binutils/mips-n64-binutils-*.pkg.tar.zst -- --noconfirm -Cfs "$@"
else
$PKG_CMD --noconfirm -Cfsi "$@"
fi
cd ../mips-n64-newlib
if [ -n "$CHROOT" ]; then
makechrootpkg -c -r $CHROOT -I ../mips-n64-gcc-stage1/mips-n64-gcc-stage1-*.pkg.tar.zst -I ../mips-n64-binutils/mips-n64-binutils-*.pkg.tar.zst -- --noconfirm -Cfs "$@"
else
$PKG_CMD --noconfirm -Cfsi "$@"
fi
cd ../mips-n64-gcc
if [ -n "$CHROOT" ]; then
makechrootpkg -c -r $CHROOT -I ../mips-n64-binutils/mips-n64-binutils-*.pkg.tar.zst -I ../mips-n64-gcc-stage1/mips-n64-gcc-stage1-*.pkg.tar.zst -I ../mips-n64-newlib/mips-n64-newlib-*.pkg.tar.zst -- --noconfirm -Cfs "$@"
else
$PKG_CMD --noconfirm -Cfsi "$@"
fi
cd ../root-compatibility-environment
$PKG_CMD -Cf "$@"
cd ../vadpcm-tools
if [ -n "$CHROOT" ]; then
makechrootpkg -c -r $CHROOT -I ../qemu-irix/qemu-irix-*.pkg.tar.zst -I ../archive-pkgs/n64-irix-env-*.pkg.tar.zst -- --noconfirm -Cfs "$@"
else
$PKG_CMD --noconfirm -Cfsi "$@"
fi
cd ../libstdc++296
$PKG_CMD -Cfs "$@"
cd ../spicy
$PKG_CMD -Cfs "$@"
cd ../makemask
$PKG_CMD -Cfs "$@"
cd ../rspcode-src
$PKG_CMD -Cfd "$@"
cd ../libcart
if [ -n "$CHROOT" ]; then
makechrootpkg -c -r $CHROOT -I ../mips-n64-gcc/mips-n64-gcc-*.pkg.tar.zst -I ../mips-n64-binutils/mips-n64-binutils-*.pkg.tar.zst -I ../mips-n64-newlib/mips-n64-newlib-*.pkg.tar.zst -I ../archive-pkgs/n64sdk-2.0L-*.pkg.tar.zst -I ../archive-pkgs/n64sdk-common-2.0L-*.pkg.tar.zst -- --noconfirm -Cfs "$@"
else
$PKG_CMD -Cfs "$@"
fi
cd ../unfloader
$PKG_CMD -Cfs "$@"