From 8743c2fa2658a87a5656f946fb9478b9106266ad Mon Sep 17 00:00:00 2001 From: Will Bainbridge Date: Sun, 24 Sep 2017 20:49:37 +0100 Subject: [PATCH] doxygen: Allwmake script POSIX compliance --- doc/Doxygen/Allwmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/Doxygen/Allwmake b/doc/Doxygen/Allwmake index 0c731a573..d6981ce83 100755 --- a/doc/Doxygen/Allwmake +++ b/doc/Doxygen/Allwmake @@ -58,7 +58,7 @@ do usage "unknown option/argument: '$*'" ;; *) - inputDirs+=("$1") + inputDirs="$inputDirs $1" shift ;; esac @@ -73,11 +73,11 @@ mv html html-stagedRemove$$ 2> /dev/null rm -rf html-stagedRemove$$ >/dev/null 2>&1 & # format the input directories -[ ${#inputDirs[@]} -ne 0 ] && inputDirs=("INPUT=" "${inputDirs[@]}") +[ -z "$inputDirs" ] || inputDirs="INPUT=$inputDirs" # ensure that created files are readable by everyone umask 22 -( cat Doxyfile ; echo "${inputDirs[@]}" ) | doxygen - +(cat Doxyfile; echo "$inputDirs") | doxygen - # fix permissions (NB: '+X' and not '+x'!) chmod -R a+rX html latex man 2>/dev/null