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

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

shift 3

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

$DOXYGEN - <<EOF
@INCLUDE        = ${DOXYFILE}
INPUT           = $@
HTML_TIMESTAMP  = NO
PROJECT_NUMBER  = $VERSION
OUTPUT_DIRECTORY = $OUT_DIR
EOF