forked from zanata/zanata-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
quickbuild.sh
executable file
·41 lines (38 loc) · 993 Bytes
/
quickbuild.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
#!/bin/bash
#set -x
function usage {
echo ">> Run this script to quickly build the Zanata web archive" >&2
echo ">>>> -c Only build GWT components for Chrome (incompatible with -f)" >&2
echo ">>>> -f Only build GWT components for Firefox (incompatible with -c)" >&2
echo ">>>> Default GWT build is both Chrome and Firefox" >&2
exit 0;
}
gwtMode="-Dchromefirefox"
while getopts "cfh" opt; do
case ${opt} in
c)
if [ $gwtMode == "-Dfirefox" ]
then usage
fi
gwtMode="-Dchrome"
echo ">> Building GWT for Google Chrome"
;;
f)
if [ $gwtMode == "-Dchrome" ]
then usage
fi
gwtMode="-Dfirefox"
echo ">> Building GWT for Mozilla Firefox"
;;
h)
usage
;;
\?)
echo "Invalid option: -$OPTARG" >&2
exit 1;
;;
esac
done
DIR="$( cd -P "$( dirname "$0" )" && pwd )"
cd $DIR/../..
mvn -DskipArqTests -DskipUnitTests -Danimal.sniffer.skip $gwtMode -am -pl zanata-war package