aboutsummaryrefslogtreecommitdiffstats
path: root/doc/doxy-wrapper.sh
blob: 9720e540302e27c236cd75d79e3034fa5894b139 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

SRC_PATH="${1}"
DOXYFILE="${2}"
DOXYGEN="${3}"

shift 3

if [ -e "$SRC_PATH/VERSION" ]; then
    VERSION=`cat "$SRC_PATH/VERSION"`
else
    VERSION=`cd "$SRC_PATH"; git describe`
fi

$DOXYGEN - <<EOF
@INCLUDE        = ${DOXYFILE}
INPUT           = $@
EXAMPLE_PATH    = ${SRC_PATH}/doc/examples
HTML_TIMESTAMP  = NO
PROJECT_NUMBER  = $VERSION
EOF