mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-28 03:40:04 +00:00
Move generate_teal_declarations.sh to scripts/
This commit is contained in:
parent
4b54c06635
commit
2cf6c5b3ce
@ -1,9 +1,7 @@
|
|||||||
pushd .
|
|
||||||
|
|
||||||
docs/source/install_luadocumentor_in_docker.sh
|
docs/source/install_luadocumentor_in_docker.sh
|
||||||
|
|
||||||
PATH=$PATH:~/luarocks/bin
|
PATH=$PATH:~/luarocks/bin
|
||||||
|
|
||||||
|
pushd .
|
||||||
echo "Install Teal Cyan"
|
echo "Install Teal Cyan"
|
||||||
git clone https://github.com/teal-language/cyan.git --depth 1
|
git clone https://github.com/teal-language/cyan.git --depth 1
|
||||||
cd cyan
|
cd cyan
|
||||||
@ -12,7 +10,6 @@ luarocks make cyan-dev-1.rockspec
|
|||||||
LUAROCKS=~/luarocks/bin
|
LUAROCKS=~/luarocks/bin
|
||||||
export LUAROCKS
|
export LUAROCKS
|
||||||
popd
|
popd
|
||||||
pushd docs
|
|
||||||
./generate_teal_declarations.sh ../teal_declarations
|
scripts/generate_teal_declarations.sh ./teal_declarations
|
||||||
popd
|
|
||||||
zip teal_declarations.zip -r teal_declarations
|
zip teal_declarations.zip -r teal_declarations
|
||||||
|
@ -7,7 +7,7 @@ DOCUMENTOR_PATH=~/.luarocks/bin/openmwluadocumentor
|
|||||||
|
|
||||||
if [ ! -x $DOCUMENTOR_PATH ]; then
|
if [ ! -x $DOCUMENTOR_PATH ]; 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
|
||||||
else
|
else
|
||||||
# running on Windows?
|
# running on Windows?
|
||||||
DOCUMENTOR_PATH="$APPDATA/LuaRocks/bin/openmwluadocumentor.bat"
|
DOCUMENTOR_PATH="$APPDATA/LuaRocks/bin/openmwluadocumentor.bat"
|
||||||
|
@ -4,13 +4,15 @@ if [ -z "$LUAROCKS" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
echo "Takes an absolute path to the output directory as the argument"
|
echo "Takes a path to the output directory as the argument"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
DOCS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
SCRIPTS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
||||||
FILES_DIR=$(realpath $DOCS_DIR/../files)
|
OPENMW_DIR=$(realpath $SCRIPTS_DIR/..)
|
||||||
OUTPUT_DIR=$1
|
DOCS_DIR=$(realpath $OPENMW_DIR/docs)
|
||||||
|
FILES_DIR=$(realpath $OPENMW_DIR/files)
|
||||||
|
OUTPUT_DIR=$(realpath "$1")
|
||||||
DOCUMENTOR_PATH=$LUAROCKS/openmwluadocumentor
|
DOCUMENTOR_PATH=$LUAROCKS/openmwluadocumentor
|
||||||
TEAL_PATH=$LUAROCKS/cyan
|
TEAL_PATH=$LUAROCKS/cyan
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user