-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sh
executable file
·113 lines (93 loc) · 2.16 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
#!/bin/bash
set -e
CWD=`pwd`
build_mac64() {
echo "Building mac64 components..."
sh build_doc.sh M64
sh build_napval.sh M64
sh build_naprrql_nrt.sh M64
sh build_napcomp.sh M64
sh build_nap-writing-print.sh M64
sh build_nap-writing-sanitiser.sh M64
echo "Creating zip archive..."
cd $CWD/build
cd Mac
zip -qr ../nias-Mac.zip .
echo "Zip archive created"
cd ..
echo "Removing temporary build files"
rm -r Mac
echo "Build Completed."
}
build_windows64() {
echo "Building Windows64 components..."
sh build_doc.sh W64
sh build_napval.sh W64
sh build_naprrql_nrt.sh W64
sh build_napcomp.sh W64
sh build_nap-writing-print.sh W64
sh build_nap-writing-sanitiser.sh W64
echo "Creating zip archive..."
cd $CWD/build
cd Win64
zip -qr ../nias-Win64.zip .
echo "Zip archive created"
cd ..
echo "Removing temporary build files"
rm -r Win64
echo "Build Completed."
}
build_linux64() {
echo "Building Linux64 components..."
sh build_doc.sh L64
sh build_napval.sh L64
sh build_naprrql_nrt.sh L64
sh build_napcomp.sh L64
sh build_nap-writing-print.sh L64
sh build_nap-writing-sanitiser.sh L64
echo "Creating zip archive..."
cd $CWD/build
cd Linux64
zip -qr ../nias-Linux64.zip .
echo "Zip archive created"
cd ..
echo "Removing temporary build files"
rm -r Linux64
echo "Build Completed."
}
build_all() {
echo "Building all components..."
sh build_doc.sh
sh build_napval.sh
sh build_naprrql_nrt.sh
sh build_napcomp.sh
sh build_nap-writing-print.sh
sh build_nap-writing-sanitiser.sh
echo "Creating zip archives..."
cd $CWD/build
cd Mac
zip -qr ../nias-Mac.zip .
cd ..
cd Win64
zip -qr ../nias-Win64.zip .
cd ..
cd Linux64
zip -qr ../nias-Linux64.zip .
cd ..
echo "Zip archives created"
echo "Removing temporary build files"
rm -r Mac Win64 Linux64
echo "Build Completed."
}
if [ "$1" = "L64" ]
then
build_linux64
elif [ "$1" = "W64" ]
then
build_windows64
elif [ "$1" = "M64" ]
then
build_mac64
else
build_all
fi