diff --git a/doc/Allwmake b/doc/Allwmake deleted file mode 100755 index f6684e337c..0000000000 --- a/doc/Allwmake +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh -cd ${0%/*} || exit 1 # Run from this directory - -# fix permissions (NB: '+X' and not '+x'!) -chmod a+rX $WM_PROJECT_DIR $WM_PROJECT_DIR/doc Doxygen - -Doxygen/Allwmake - -#------------------------------------------------------------------------------ diff --git a/doc/Doxygen/Allwmake b/doc/Doxygen/Allwmake index 780d630791..dae757f202 100755 --- a/doc/Doxygen/Allwmake +++ b/doc/Doxygen/Allwmake @@ -13,7 +13,7 @@ usage() { while [ "$#" -ge 1 ]; do echo "$1"; shift; done cat< ... options: -online use the links to the Github repositories instead of the local source code -help @@ -54,9 +54,13 @@ do defineURL shift ;; - *) + -*) usage "unknown option/argument: '$*'" ;; + *) + inputDirs+=("$1") + shift + ;; esac done @@ -68,9 +72,12 @@ rm -rf latex man 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[@]}") + # ensure that created files are readable by everyone umask 22 -doxygen +( cat Doxyfile ; echo "${inputDirs[@]}" ) | doxygen - # fix permissions (NB: '+X' and not '+x'!) chmod -R a+rX html latex man 2>/dev/null