blob: a63a7a16fc5ecc23f2ea2e42393b004e9bdfac23 (
plain)
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
|
#!/bin/sh
flags=-Pacceptance
while [ $# -gt 0 ]
do
case "$1" in
--no-documentation|--without-documentation)
flags="$flags -Dgerrit.documentation.skip=true"
shift
;;
--no-plugins|--without-plugins)
flags="$flags -Dgerrit.plugins.skip=true"
shift
;;
*)
echo >&2 "usage: $0 [--no-documentation] [--no-plugins]"
exit 1
esac
done
git update-index -q --refresh
if test -n "$(git diff-index --name-only HEAD --)" \
|| test -n "$(git ls-files --others --exclude-standard)"
then
echo >&2 "error: working directory is dirty, refusing to build"
exit 1
fi
./tools/version.sh --release &&
mvn clean package $flags
rc=$?
./tools/version.sh --reset
if test 0 = $rc
then
echo
echo Built Gerrit Code Review `git describe`:
ls gerrit-war/target/gerrit-*.war
echo
fi
exit $rc
|