-
Notifications
You must be signed in to change notification settings - Fork 3
/
build_naprrql_nrt.sh
114 lines (84 loc) · 1.63 KB
/
build_naprrql_nrt.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
114
#!/bin/bash
set -e
CWD=`pwd`
#rm -rf dev-nrt
#git clone https://github.com/nsip/dev-nrt
# Linux64
build_linux64() {
echo "Building Linux64 binaries..."
cd ./dev-nrt
rm -rf ./build && ./build.sh Linux64
OUTPUT="$CWD"/build/Linux64/naprrql
rm -rf "$OUTPUT"
mkdir -p "$OUTPUT"
cp -r ./build/* "$OUTPUT"
./clean.sh
cd "$OUTPUT"
mv testdata in
HARNESS=naprrql
mv nrt $HARNESS
# zip
ZIP=naprrql-Linux64.zip
cd ..
#zip -qr ../$ZIP naprrql
cd "$CWD"
echo "...all Linux64 binaries built..."
}
# Mac
build_mac64() {
echo "Building Mac binaries..."
cd ./dev-nrt
rm -rf ./build && ./build.sh Mac
OUTPUT="$CWD"/build/Mac/naprrql
rm -rf "$OUTPUT"
mkdir -p "$OUTPUT"
cp -r ./build/* "$OUTPUT"
./clean.sh
cd "$OUTPUT"
mv testdata in
HARNESS=naprrql
mv nrt $HARNESS
# zip
ZIP=naprrql-Mac.zip
cd ..
#zip -qr ../$ZIP naprrql
cd "$CWD"
echo "...all Mac binaries built..."
}
# Windows64
build_windows64() {
echo "Building Windows64 binaries..."
cd ./dev-nrt
rm -rf ./build && ./build.sh Windows64
OUTPUT="$CWD"/build/Win64/naprrql
rm -rf "$OUTPUT"
mkdir -p "$OUTPUT"
cp -r ./build/* "$OUTPUT"
./clean.sh
cd "$OUTPUT"
mv testdata in
HARNESS=naprrql.exe
mv nrt.exe $HARNESS
# zip
ZIP=naprrql-Windows64.zip
cd ..
#zip -qr ../$ZIP naprrql
cd "$CWD"
echo "...all Windows64 binaries built..."
}
if [ "$1" = "L64" ]
then
build_linux64
elif [ "$1" = "W64" ]
then
build_windows64
elif [ "$1" = "M64" ]
then
build_mac64
else
build_linux64
build_mac64
build_windows64
fi
cd "$CWD"
# rm -rf ./dev-nrt