-
Notifications
You must be signed in to change notification settings - Fork 4
/
rebuild-rem.sh
executable file
·72 lines (64 loc) · 1.31 KB
/
rebuild-rem.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
#!/usr/bin/env bash
cd ..
die() {
echo "$*"
exit 1
}
remglk() {
(
echo "Rebuilding remglk..."
cd remglk
make -s
)
}
fizmo() {
(
echo "Rebuilding fizmo..."
cd fizmo-rem
find . -type f -name fizmo-glktermw -delete
make -s fizmo-glktermw
return $?
)
}
glulxe() {
(
echo "Rebuilding glulxe..."
cd glulxe-047-rem
rm -f glulxe
make -s
return $?
)
}
tads() {
(
echo "Rebuilding TADS..."
cd floyd-tads-rem
rm -f build/linux.release/tads/libremblk.a build/linux.release/tads/tadsr
cp ../remglk/libremglk.a build/linux.release/tads/
(
cd tads
jam -d 0 || return 1
)
rm -f build/linux.debug/tads/libremblk.a build/linux.debug/tads/tadsr
cp ../remglk/libremglk.a build/linux.debug/tads/
(
cd tads
BUILD=DEBUG jam -d 0 || return 1
)
)
}
hugo() {
(
echo "Rebuilding hugo..."
cd hugo-rem/glk
rm heglk
make -s
return $?
)
}
remglk || die "Error building remglk!"
fizmo || die "Error building fizmo!"
glulxe || die "Error building glulxe!"
tads || die "Error building TADS!"
hugo || die "Error building hugo!"
echo "All done."