-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·53 lines (38 loc) · 916 Bytes
/
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
#!/usr/bin/env bash
cd ..
if [[ "$1" = "-t" ]]; then
gradle clean test testJar installDist
else
gradle clean testJar installDist
fi
build_ret=$?
if [[ ${build_ret} != 0 ]] ; then
echo gradle build failed!
exit ${build_ret}
fi
mkdir -p build/install/nexial-core/support
cp -Rf support/nexial*.* build/install/nexial-core/support
# generate the latest command listing
cd build/install/nexial-core/support
chmod -fR 755 *.sh
./nexial-command-generator.sh
build_ret=$?
if [[ ${build_ret} != 0 ]] ; then
echo command generator failed!
exit ${build_ret}
fi
cd ..
rm -frv support
cd bin
./nexial-script-update.sh -v -t ../template
build_ret=$?
if [[ ${build_ret} != 0 ]] ; then
echo script update failed!
exit ${build_ret}
fi
./nexial-script-update.sh -v -t ../../../../template
build_ret=$?
if [[ ${build_ret} != 0 ]] ; then
echo script update failed!
exit ${build_ret}
fi