mirror of https://github.com/OpenMW/openmw.git
Use single script to generate Lua doc
parent
80adcf3c88
commit
0f95a303ef
@ -1,22 +0,0 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
if ! [[ -f "/.dockerenv" ]]; then
|
||||
echo "Run this script inside Docker container" >&2
|
||||
exit -1
|
||||
fi
|
||||
|
||||
FILES_DIR=/openmw/files
|
||||
OUTPUT_DIR=/openmw/docs/source/reference/lua-scripting/generated_html
|
||||
|
||||
rm -rf "${OUTPUT_DIR}"
|
||||
mkdir "${OUTPUT_DIR}"
|
||||
|
||||
cd "${FILES_DIR}/lua_api"
|
||||
openmwluadocumentor -f doc -d "${OUTPUT_DIR}" openmw/*lua
|
||||
|
||||
cd "${FILES_DIR}/data"
|
||||
openmwluadocumentor -f doc -d "${OUTPUT_DIR}" openmw_aux/*lua
|
||||
openmwluadocumentor -f doc -d "${OUTPUT_DIR}" scripts/omw/ai.lua
|
||||
openmwluadocumentor -f doc -d "${OUTPUT_DIR}" scripts/omw/camera/camera.lua
|
||||
openmwluadocumentor -f doc -d "${OUTPUT_DIR}" scripts/omw/mwui/init.lua
|
||||
openmwluadocumentor -f doc -d "${OUTPUT_DIR}" scripts/omw/settings/player.lua
|
@ -0,0 +1,26 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
echo "Install lua 5.1"
|
||||
cd ~
|
||||
curl -R -O https://www.lua.org/ftp/lua-5.1.5.tar.gz
|
||||
tar -zxf lua-5.1.5.tar.gz
|
||||
cd lua-5.1.5/
|
||||
make -j $(nproc) linux
|
||||
PATH="${PATH:?}:~/lua-5.1.5/src"
|
||||
|
||||
echo "Install luarocks"
|
||||
cd ~
|
||||
wget https://luarocks.org/releases/luarocks-2.4.2.tar.gz
|
||||
tar zxpf luarocks-2.4.2.tar.gz
|
||||
cd luarocks-2.4.2/
|
||||
./configure --with-lua-bin="${HOME:?}/lua-5.1.5/src" --with-lua-include="${HOME:?}/lua-5.1.5/src" --prefix="${HOME:?}/luarocks"
|
||||
make -j $(nproc) build
|
||||
make -j $(nproc) install
|
||||
PATH="${PATH:?}:~/luarocks/bin"
|
||||
|
||||
echo "Install openmwluadocumentor"
|
||||
cd ~
|
||||
git clone --depth 1 https://gitlab.com/ptmikheev/openmw-luadocumentor.git
|
||||
cd openmw-luadocumentor/luarocks
|
||||
luarocks --local pack openmwluadocumentor-0.1.1-1.rockspec
|
||||
luarocks --local install openmwluadocumentor-0.1.1-1.src.rock
|
Loading…
Reference in New Issue