summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Nightbuild2008.cmd21
1 files 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.