Skip to content

Commit

Permalink
build-doc: fix checks for required commands for non-debian
Browse files Browse the repository at this point in the history
Fixes: 7695

Signed-off-by: Danny Al-Gaaf <[email protected]>
  • Loading branch information
dalgaaf committed Mar 12, 2014
1 parent c55da14 commit 8e76e4e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions admin/build-doc
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/sh
set -e
cd "$(dirname "$0")"
cd ..
TOPDIR=`pwd`
Expand All @@ -19,10 +18,12 @@ if command -v dpkg >/dev/null; then
exit 1
fi
else
for command in virtualenv doxygen ditaa ant; do
if ! command -v "$command" >/dev/null; then
for command in virtualenv doxygen ant ditaa; do
command -v "$command" > /dev/null;
ret_code=$?
if [ $ret_code -ne 0 ]; then
# add a space after old values
missing="${missing:+$missing }$package"
missing="${missing:+$missing }$command"
fi
done
if [ -n "$missing" ]; then
Expand Down

0 comments on commit 8e76e4e

Please sign in to comment.