From 7741b9a20f53b0b954f99c4bc90ed4e82d88589d Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Mon, 8 Apr 2013 20:49:53 +0000 Subject: [PATCH] Updated the Nightbuild script for passive ftp client git-svn-id: http://mc-server.googlecode.com/svn/trunk@1372 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- Nightbuild2008.cmd | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/Nightbuild2008.cmd b/Nightbuild2008.cmd index 6e55ecc50..8d61ee598 100644 --- a/Nightbuild2008.cmd +++ b/Nightbuild2008.cmd @@ -101,8 +101,25 @@ if errorlevel 1 goto haderror -:: upload to FTP using the upload_win.ftp (.template) script -ftp -n -s:Install\upload_win.ftp xoft.cz +:: upload to the FTP: +: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 +) +ncftpput -p %ftppass% -u %ftpuser% -T temp_ %ftpsite% / Install\MCServer_Win_%WCREV%.7z +if errorlevel 1 goto haderror +ncftpput -p %ftppass% -u %ftpuser% -T temp_ %ftpsite% /PDBs Install\MCServer_Win_%WCREV%_PDBs.7z +if errorlevel 1 goto haderror +echo Upload finished.