diff options
author | worktycho <work.tycho@gmail.com> | 2013-12-09 18:51:12 +0100 |
---|---|---|
committer | worktycho <work.tycho@gmail.com> | 2013-12-09 18:51:12 +0100 |
commit | 843605d59ebc128be0a578dc6f45ef8c05da6e79 (patch) | |
tree | 3ffebc6ba27baf7a9e1d4bc51501ffeea9b14226 /MakeLuaAPI.cmd | |
parent | merged makefile changes (diff) | |
parent | Fix Undefined behavior at Bindings/LuaWindow line 32 (diff) | |
download | cuberite-843605d59ebc128be0a578dc6f45ef8c05da6e79.tar cuberite-843605d59ebc128be0a578dc6f45ef8c05da6e79.tar.gz cuberite-843605d59ebc128be0a578dc6f45ef8c05da6e79.tar.bz2 cuberite-843605d59ebc128be0a578dc6f45ef8c05da6e79.tar.lz cuberite-843605d59ebc128be0a578dc6f45ef8c05da6e79.tar.xz cuberite-843605d59ebc128be0a578dc6f45ef8c05da6e79.tar.zst cuberite-843605d59ebc128be0a578dc6f45ef8c05da6e79.zip |
Diffstat (limited to 'MakeLuaAPI.cmd')
-rw-r--r-- | MakeLuaAPI.cmd | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/MakeLuaAPI.cmd b/MakeLuaAPI.cmd new file mode 100644 index 000000000..80bb206d4 --- /dev/null +++ b/MakeLuaAPI.cmd @@ -0,0 +1,65 @@ +@echo off +:: MakeLuaAPI.cmd +:: This script is run after the nightbuild to produce the Lua API documentation and upload it to a website. +:: It expects at least three environment variables set: ftpsite, ftpuser and ftppass, specifying the FTP site and login to use for the upload + + + + + +:: Check that we got all the environment vars needed for the upload: + +if "a%ftppass%" == "a" ( + echo You need to set FTP password in the ftppass environment variable to upload the files + goto end +) +if "a%ftpuser%" == "a" ( + echo You need to set FTP username in the ftpuser environment variable to upload the files + goto end +) +if "a%ftpsite%" == "a" ( + echo You need to set FTP server in the ftpsite environment variable to upload the files + goto end +) + + + + + +:: Create the API documentation by running the server and stopping it right after it starts: + +cd MCServer +echo stop | MCServer +cd .. + + + + + +:: Upload the API to the web: + +ncftpput -p %ftppass% -u %ftpuser% -T temp_ %ftpsite% /LuaAPI MCServer/API/*.* +if errorlevel 1 goto haderror +echo Upload finished. + +goto end + + + + + +:haderror +echo an error was encountered, check command output above +pause +goto finished + + + + + +:end +if "a%1" == "a" pause + + + +:finished
\ No newline at end of file |