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:
parent
ddf1b34934
commit
da631c788c
@ -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=$?
|
||||||
|
Loading…
Reference in New Issue
Block a user