Abort release, if asciidoc is missing

It is hard to figure out, why no documentation is built, if asciidoc is
not installed on the build system.

Thus, abort the build and advise to either install asciidoc or add the
--without-documentation parameter.

Change-Id: I12c5c71d4f36333eabf01515344111ee9436a07c
This commit is contained in:
Steffen Gebert 2012-10-26 16:25:52 +02:00
parent ddf1b34934
commit da631c788c

View File

@ -24,6 +24,17 @@ then
exit 1 exit 1
fi fi
if test -n "$include_docs"
then
BINARY=asciidoc
if ! command -v $BINARY >/dev/null 2>&1
then
echo >&2 "error: $BINARY executable was not found. Either install $BINARY or use the --without-documentation option"
exit 1
fi
fi
./tools/version.sh --release && ./tools/version.sh --release &&
mvn clean install $include_docs -P all mvn clean install $include_docs -P all
rc=$? rc=$?