make_doc.sh 405 B

123456789101112131415161718
  1. #! /bin/bash
  2. here="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
  3. godotHome=$(dirname "$here")
  4. docTarget=${here}/html/class_list
  5. toolsRoot=${godotHome}/tools
  6. throw() {
  7. echo "$@" >&2
  8. exit 1
  9. }
  10. [ -d "$docTarget" ] || mkdir -p "$docTarget" || throw "Could not create doc target $docTarget"
  11. cd "$docTarget"
  12. python ${toolsRoot}/docdump/makehtml.py -multipage ${here}/base/classes.xml
  13. cd "$here"