From a1d7410ff8c486b7f16f5b94495de8979884cd87 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 19 May 2020 02:56:02 -0400 Subject: [PATCH] windows-buildbot-zipper.bat: Attempt to update for new buildbot. --- build-scripts/windows-buildbot-zipper.bat | 36 ++++++++--------------- 1 file changed, 12 insertions(+), 24 deletions(-) diff --git a/build-scripts/windows-buildbot-zipper.bat b/build-scripts/windows-buildbot-zipper.bat index a6f516974..5bbc4658b 100644 --- a/build-scripts/windows-buildbot-zipper.bat +++ b/build-scripts/windows-buildbot-zipper.bat @@ -1,38 +1,26 @@ @echo off rem just a helper batch file for collecting up files and zipping them. -rem usage: windows-buildbot-zipper.bat +rem usage: windows-buildbot-zipper.bat rem must be run from root of SDL source tree. -IF EXIST VisualC\Win32\Release GOTO okaywin32dir +IF EXIST %2\%1\Release GOTO okaydir echo Please run from root of source tree after doing a Release build. GOTO done -:okaywin32dir -IF EXIST VisualC\x64\Release GOTO okaydirs -echo Please run from root of source tree after doing a Release build. -GOTO done - -:okaydirs +:okaydir erase /q /f /s zipper IF EXIST zipper GOTO zippermade mkdir zipper :zippermade -cd zipper -mkdir SDL -cd SDL -mkdir include -mkdir lib -mkdir lib\win32 -mkdir lib\win64 -copy ..\..\include\*.h include\ -copy ..\..\VisualC\Win32\Release\SDL2.dll lib\win32\ -copy ..\..\VisualC\Win32\Release\SDL2.lib lib\win32\ -copy ..\..\VisualC\Win32\Release\SDL2main.lib lib\win32\ -copy ..\..\VisualC\x64\Release\SDL2.dll lib\win64\ -copy ..\..\VisualC\x64\Release\SDL2.lib lib\win64\ -copy ..\..\VisualC\x64\Release\SDL2main.lib lib\win64\ -cd .. -zip -9r ..\%1 SDL +mkdir zipper\SDL +mkdir zipper\SDL\include +mkdir zipper\SDL\lib +copy include\*.h include\ +copy %2\%1\Release\SDL2.dll zipper\SDL\lib\ +copy %2\%1\Release\SDL2.lib zipper\SDL\lib\ +copy %2\%1\Release\SDL2main.lib zipper\SDL\lib\ +cd zipper +zip -9r ..\%3 SDL cd .. erase /q /f /s zipper