doxygen.meson.sh (459B)
1 #!/bin/sh 2 3 # This is more portable than `which' but comes with 4 # the caveat of not(?) properly working on busybox's ash: 5 existence() 6 { 7 type "$1" >/dev/null 2>&1 8 } 9 10 if ! existence doxygen 11 then 12 echo "Doxygen not found" 13 exit 1 14 fi 15 cd "${MESON_SOURCE_ROOT}/doc/doxygen" 16 echo "PROJECT_NUMBER = ${PACKAGE_VERSION}" > version.doxy 17 if [ "$1" = "fast" ] 18 then 19 make fast 20 else 21 make all 22 fi 23 24 echo "Doxygen files generated into ${MESON_SOURCE_ROOT}/doc/doxygen!"