blob: 14d7fc885ecbc1ec78fca68df073a64c40a6e7fb [file] [log] [blame]
#!/bin/sh
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
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