UpdateDocument.sh 662 B

1234567891011121314151617181920212223
  1. dumpluaapi() {
  2. $CD/$1 -v 1>/dev/null 2>&1
  3. if [ $? -ne 0 ]; then return 1; fi
  4. echo "Dumping LuaScript API..."
  5. out=`pwd`/LuaScriptAPI.dox
  6. pushd ../Source/Engine/LuaScript/pkgs >/dev/null
  7. $CD/$1 pkgToDox.lua $out *.pkg
  8. if [ $? -ne 0 ]; then exit 1; fi
  9. popd >/dev/null
  10. return 0
  11. }
  12. cd $( dirname $0 )
  13. CD=`pwd`
  14. cd $CD/../Docs
  15. echo "Dumping AngelScript API..."
  16. ../Bin/ScriptCompiler -dumpapi ScriptAPI.dox AngelScriptAPI.h
  17. if [ $? -ne 0 ]; then exit 1; fi
  18. for l in luajit lua; do dumpluaapi $l && break; done
  19. if [ "$1" != "-a" ]; then exit 0; fi
  20. echo "Converting Doxygen files to HTML..."
  21. doxygen Doxyfile 1>/dev/null
  22. echo "Finish."