mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-30 12:32:36 +00:00
Fix Luarocks PATH
This commit is contained in:
parent
c064e9ebf9
commit
ee4b023680
@ -4,15 +4,18 @@ DOCS_SOURCE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
|||||||
FILES_DIR=$DOCS_SOURCE_DIR/../../files
|
FILES_DIR=$DOCS_SOURCE_DIR/../../files
|
||||||
OUTPUT_DIR=$DOCS_SOURCE_DIR/reference/lua-scripting/generated_html
|
OUTPUT_DIR=$DOCS_SOURCE_DIR/reference/lua-scripting/generated_html
|
||||||
|
|
||||||
PATH=$PATH:~/lua-5.1.5/src
|
if ! command -v openmwluadocumentor &> /dev/null
|
||||||
eval "$(luarocks path)"
|
then
|
||||||
|
|
||||||
if [ ! command -v openmwluadocumentor &> /dev/null ]; then
|
|
||||||
if [ -f /.dockerenv ] || [ -f /home/docs/omw_luadoc_docker ]; then
|
if [ -f /.dockerenv ] || [ -f /home/docs/omw_luadoc_docker ]; then
|
||||||
./install_luadocumentor_in_docker.sh
|
./install_luadocumentor_in_docker.sh
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [ ! command -v openmwluadocumentor &> /dev/null ]; then
|
|
||||||
|
PATH=$PATH:~/luarocks/bin
|
||||||
|
eval "$(luarocks path)"
|
||||||
|
|
||||||
|
if ! command -v openmwluadocumentor &> /dev/null
|
||||||
|
then
|
||||||
echo "openmwluadocumentor not found; See README.md for installation instructions."
|
echo "openmwluadocumentor not found; See README.md for installation instructions."
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user