mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 15:29:55 +00:00
Move generate_teal_declarations.sh to scripts/
This commit is contained in:
parent
4b54c06635
commit
2cf6c5b3ce
3 changed files with 10 additions and 11 deletions
|
@ -1,9 +1,7 @@
|
|||
pushd .
|
||||
|
||||
docs/source/install_luadocumentor_in_docker.sh
|
||||
|
||||
PATH=$PATH:~/luarocks/bin
|
||||
|
||||
pushd .
|
||||
echo "Install Teal Cyan"
|
||||
git clone https://github.com/teal-language/cyan.git --depth 1
|
||||
cd cyan
|
||||
|
@ -12,7 +10,6 @@ luarocks make cyan-dev-1.rockspec
|
|||
LUAROCKS=~/luarocks/bin
|
||||
export LUAROCKS
|
||||
popd
|
||||
pushd docs
|
||||
./generate_teal_declarations.sh ../teal_declarations
|
||||
popd
|
||||
|
||||
scripts/generate_teal_declarations.sh ./teal_declarations
|
||||
zip teal_declarations.zip -r teal_declarations
|
||||
|
|
|
@ -7,7 +7,7 @@ DOCUMENTOR_PATH=~/.luarocks/bin/openmwluadocumentor
|
|||
|
||||
if [ ! -x $DOCUMENTOR_PATH ]; then
|
||||
if [ -f /.dockerenv ] || [ -f /home/docs/omw_luadoc_docker ]; then
|
||||
. install_luadocumentor_in_docker.sh
|
||||
./install_luadocumentor_in_docker.sh
|
||||
else
|
||||
# running on Windows?
|
||||
DOCUMENTOR_PATH="$APPDATA/LuaRocks/bin/openmwluadocumentor.bat"
|
||||
|
|
|
@ -4,13 +4,15 @@ if [ -z "$LUAROCKS" ]; then
|
|||
fi
|
||||
|
||||
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
|
||||
fi
|
||||
|
||||
DOCS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
||||
FILES_DIR=$(realpath $DOCS_DIR/../files)
|
||||
OUTPUT_DIR=$1
|
||||
SCRIPTS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
||||
OPENMW_DIR=$(realpath $SCRIPTS_DIR/..)
|
||||
DOCS_DIR=$(realpath $OPENMW_DIR/docs)
|
||||
FILES_DIR=$(realpath $OPENMW_DIR/files)
|
||||
OUTPUT_DIR=$(realpath "$1")
|
||||
DOCUMENTOR_PATH=$LUAROCKS/openmwluadocumentor
|
||||
TEAL_PATH=$LUAROCKS/cyan
|
||||
|
Loading…
Reference in a new issue