doxy-wrapper.sh 335 B

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