aboutsummaryrefslogblamecommitdiffstats
path: root/doc/doxy-wrapper.sh
blob: 729caa6347dbc7046b342fd831b96ab4ad062cce (plain) (tree)
1
2
3
4
5
6
7
8
9
10
         
              

               
 

             
 
                           
    
                          
  
                
                             
                    
                          
                           
   
#!/bin/sh

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

shift 4

cd ${SRC_DIR}

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