mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 05:34:48 +02:00
Fail gracefully when pandoc and sphinx-build aren't installed.
Refs #5774
This commit is contained in:
parent
9f26878321
commit
6a841e8627
10
doc/mkdoc.sh
10
doc/mkdoc.sh
@ -6,13 +6,17 @@ if [ -z "$1" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
BUILDDIR="$1"
|
||||||
|
|
||||||
|
mkdir -p $BUILDDIR/htdocs
|
||||||
|
|
||||||
if ! which pandoc; then
|
if ! which pandoc; then
|
||||||
echo "Please install pandoc to build the documentation files."
|
echo "Please install pandoc to build the documentation files." > $BUILDDIR/htdocs/index.html
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! which pandoc; then
|
if ! which sphinx-build; then
|
||||||
echo "Please install sphinx-build to build the documentation files."
|
echo "Please install sphinx-build to build the documentation files." > $BUILDDIR/htdocs/index.html
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user