-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild-zip.sh
executable file
·65 lines (54 loc) · 1.46 KB
/
build-zip.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
#!/bin/bash
set -euo pipefail
if (( $# != 4 ))
then
echo "Invalid arguments parsed."
exit 1
fi
source functions.sh
application=""
modules=""
while getopts ":a:m:" opt
do
case ${opt} in
a )
application=$OPTARG
;;
m )
modules=$OPTARG
;;
esac
done
title "Update Manifest Files With Last Commit Date As Module Version"
for module in $modules
do
cd "../$module"
python3 ../constellation-applications/git_version.py -u y
done
title "Update Dependencies & Clean Build"
for module in $modules
do
cd "../$module"
ant \
-Dnbplatform.active.dir="${NETBEANS_HOME}" \
-Dnbplatform.default.netbeans.dest.dir="${NETBEANS_HOME}" \
-Dnbplatform.default.harness.dir="${NETBEANS_HOME}"/harness \
-Dbuild.compiler.debug=true update-dependencies-clean-build
done
cd "../constellation-applications/$application"
for target in build-zip-with-windows-jre build-zip-with-linux-jre build-zip-with-macosx-jre
do
title "Build $target"
ant \
-Dnbplatform.active.dir="${NETBEANS_HOME}" \
-Dnbplatform.default.netbeans.dest.dir="${NETBEANS_HOME}" \
-Dnbplatform.default.harness.dir="${NETBEANS_HOME}"/harness \
-Dbuild.compiler.debug=true $target
done
#title "Build Portable Zip"
#
#ant \
# -Dnbplatform.active.dir="${NETBEANS_HOME}" \
# -Dnbplatform.default.netbeans.dest.dir="${NETBEANS_HOME}" \
# -Dnbplatform.default.harness.dir="${NETBEANS_HOME}"/harness \
# -Dbuild.compiler.debug=true download-dependencies build-zip