Added a script to handle packing up Windows builds for the buildbot.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 04 Dec 2014 02:09:07 -0500
changeset 92634f3aec35b6fc
parent 9262 b3df9db209b0
child 9264 c1eab6da82c1
Added a script to handle packing up Windows builds for the buildbot.
build-scripts/windows-buildbot-zipper.bat
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/build-scripts/windows-buildbot-zipper.bat	Thu Dec 04 02:09:07 2014 -0500
     1.3 @@ -0,0 +1,31 @@
     1.4 +@echo off
     1.5 +rem just a helper batch file for collecting up files and zipping them.
     1.6 +rem usage: windows-buildbot-zipper.bat <zipfilename>
     1.7 +rem must be run from root of SDL source tree.
     1.8 +
     1.9 +IF EXIST VisualC\SDL\Win32\Release GOTO okaydir
    1.10 +echo Please run from root of source tree after doing a Release build.
    1.11 +GOTO done
    1.12 +
    1.13 +:okaydir
    1.14 +erase /q /f /s zipper
    1.15 +IF EXIST zipper GOTO zippermade
    1.16 +mkdir zipper
    1.17 +:zippermade
    1.18 +cd zipper
    1.19 +mkdir SDL
    1.20 +cd SDL
    1.21 +mkdir include
    1.22 +mkdir lib
    1.23 +mkdir lib\win32
    1.24 +copy ..\..\include\*.h include\
    1.25 +copy ..\..\VisualC\SDL\Win32\Release\SDL2.dll lib\win32\
    1.26 +copy ..\..\VisualC\SDL\Win32\Release\SDL2.lib lib\win32\
    1.27 +copy ..\..\VisualC\SDLmain\Win32\Release\SDL2main.lib lib\win32\
    1.28 +cd ..
    1.29 +zip -9r ..\%1 SDL
    1.30 +cd ..
    1.31 +erase /q /f /s zipper
    1.32 +
    1.33 +:done
    1.34 +