|
@@ -1,16 +1,22 @@
|
|
|
-cd $( dirname $0 )/../Docs
|
|
|
|
|
-echo "Dumping AngelScript API..."
|
|
|
|
|
-../Bin/ScriptCompiler -dumpapi ScriptAPI.dox AngelScriptAPI.h
|
|
|
|
|
-if [ $? -ne 0 ]; then exit 1; fi
|
|
|
|
|
-lua -v 1>/dev/null 2>&1
|
|
|
|
|
-if [ $? -eq 0 ]; then
|
|
|
|
|
|
|
+dumpluaapi() {
|
|
|
|
|
+ $CD/$1 -v 1>/dev/null 2>&1
|
|
|
|
|
+ if [ $? -ne 0 ]; then return 1; fi
|
|
|
echo "Dumping LuaScript API..."
|
|
echo "Dumping LuaScript API..."
|
|
|
out=`pwd`/LuaScriptAPI.dox
|
|
out=`pwd`/LuaScriptAPI.dox
|
|
|
pushd ../Source/Engine/LuaScript/pkgs >/dev/null
|
|
pushd ../Source/Engine/LuaScript/pkgs >/dev/null
|
|
|
- lua pkgToDox.lua $out *.pkg
|
|
|
|
|
|
|
+ $CD/$1 pkgToDox.lua $out *.pkg
|
|
|
if [ $? -ne 0 ]; then exit 1; fi
|
|
if [ $? -ne 0 ]; then exit 1; fi
|
|
|
popd >/dev/null
|
|
popd >/dev/null
|
|
|
-fi
|
|
|
|
|
|
|
+ return 0
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+cd $( dirname $0 )
|
|
|
|
|
+CD=`pwd`
|
|
|
|
|
+cd $CD/../Docs
|
|
|
|
|
+echo "Dumping AngelScript API..."
|
|
|
|
|
+../Bin/ScriptCompiler -dumpapi ScriptAPI.dox AngelScriptAPI.h
|
|
|
|
|
+if [ $? -ne 0 ]; then exit 1; fi
|
|
|
|
|
+for l in luajit lua; do dumpluaapi $l && break; done
|
|
|
if [ "$1" != "-a" ]; then exit 0; fi
|
|
if [ "$1" != "-a" ]; then exit 0; fi
|
|
|
echo "Converting Doxygen files to HTML..."
|
|
echo "Converting Doxygen files to HTML..."
|
|
|
doxygen Doxyfile 1>/dev/null
|
|
doxygen Doxyfile 1>/dev/null
|