-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-all.sh
executable file
·84 lines (64 loc) · 1.12 KB
/
build-all.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
81
82
83
84
set -x
cd $(dirname "$0")
BINS=`pwd`/bin
if ! [ -d "$BINS" ]; then
mkdir -p "$BINS"
fi
if [ ! -x "$BINS/pasta" ]; then
if [ -x "$(which pasta)" ]; then
PASTA=$(which pasta)
else
PASTA=/home/jules/code/pasta/pasta
fi
cp "$PASTA" "$BINS"
fi
if [ ! -x "$BINS/adfs" ]; then
pushd adfs
./compile.sh
popd
cp adfs/adfs "$BINS"
fi
if [ ! -x "$BINS/bbcim" ]; then
pushd bbcim
./mkbbcim
popd
cp bbcim/bbcim "$BINS"
fi
if [ ! -x "$BINS/pasta" ] || [ ! -x "$BINS/bbcim" ]; then
echo 'Missing binary for pasta or bbcim! Whoops.'
exit 1
fi
PATH="$BINS:$PATH"
OUTPUTDISK=$(readlink -f tmpdisk)
mkdir -p "$OUTPUTDISK"
pushd "$OUTPUTDISK"
rm -f *
popd
export OUTPUTDISK
set -e
pushd bbc-cube
./compile.sh
popd
pushd chequer
./compile.sh
popd
pushd crtc-logo
./compile.sh
popd
pushd vgmplayer
./compile.sh
popd
pushd end-screen
./compile.sh
popd
pushd startup
./compile.sh
popd
# Get joey's bits...
for x in O.PHASE O.ROTA O.SIERPA O.WHIRL O.MAIN L.SIN L.LOGS; do
cp "joeys/mycode.conv/$x" "joeys/mycode.conv/$x.inf" "$OUTPUTDISK"
done
bbcim -new demodisk.ssd
pushd tmpdisk
bbcim -a ../demodisk.ssd *
popd