Skip to content
Snippets Groups Projects
Commit ff8568fb authored by Christian Engwer's avatar Christian Engwer
Browse files

skip generation if the module doesn't contain a doc/doxygen directory

[[Imported from SVN: r5687]]
parent f170d9c3
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
export DOXYOUT=${1:-doc/doxygen/Doxyfile.in}
shift
export DOXYDIR=doc/doxygen/
DOXYOUT=${1:-doc/doxygen/Doxyfile.in}
OUTDIR=`dirname "$DOXYOUT"`
DOXYDIR="doc/doxygen/"
find_doxystyle()
{
......@@ -108,12 +108,24 @@ if ! [ -f dune.module ]; then
exit 1
fi
# quite if your module doesn't have any documentation
if ! [ -d "$OUTDIR" ]; then
if [ $# -eq 0 ]; then
exit 0
else
echo "Error: output directory $OUTDIR does not exist."
exit 0
fi
fi
# search for doxygen style
if ! find_doxystyle; then
echo "Error: dunedoxynize global style not found"
exit 1
fi
# drop the parameter of the output file
shift
# make sure that there is at least one Doxylocal file
if ! (test_doxylocal "${@:-.}" || [ $# -eq 0 ]); then
echo "Error: you didn't supply any valid Doxylocal file"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment