doxy-wrapper.sh 305 B

123456789101112131415161718192021
  1. #!/bin/sh
  2. OUT_DIR="${1}"
  3. DOXYFILE="${2}"
  4. DOXYGEN="${3}"
  5. shift 3
  6. if [ -e "VERSION" ]; then
  7. VERSION=`cat "VERSION"`
  8. else
  9. VERSION=`git describe`
  10. fi
  11. $DOXYGEN - <<EOF
  12. @INCLUDE = ${DOXYFILE}
  13. INPUT = $@
  14. HTML_TIMESTAMP = NO
  15. PROJECT_NUMBER = $VERSION
  16. OUTPUT_DIRECTORY = $OUT_DIR
  17. EOF