build-docs.sh 551 B

123456789101112131415161718192021222324252627
  1. #!/bin/sh
  2. # Part of Zombie Navigator
  3. # Copyright © 2015 Zombie Navigator Developers
  4. cd "`dirname "$0"`/.."
  5. . ./version_info
  6. git="`git show -s --pretty=format:%H 2>/dev/null | head -c 8`"
  7. [ "$git" ] && {
  8. version_git="+git.$git"
  9. git_changes="`git status -s`"
  10. [ "$git_changes" ] && version_git="${version_git}+uncommitted"
  11. }
  12. targetDir="./src/data/docs"
  13. ./tools/gen-docs-ng.sh ./docs \
  14. "Zombie Navigator: API Documentation v$addon_version" \
  15. "Build: version ${addon_version}" > "$targetDir/index.html"
  16. echo "Done?" >&2
  17. # vim: ts=4 noet ai