build-scripts/windows-buildbot-zipper.bat
author Ryan C. Gordon <icculus@icculus.org>
Thu, 04 Dec 2014 02:24:22 -0500
changeset 9264 c1eab6da82c1
parent 9263 4f3aec35b6fc
permissions -rw-r--r--
Fixed some paths in the new buildbot windows zipper script.

@echo off
rem just a helper batch file for collecting up files and zipping them.
rem usage: windows-buildbot-zipper.bat <zipfilename>
rem must be run from root of SDL source tree.

IF EXIST VisualC\Win32\Release GOTO okaydir
echo Please run from root of source tree after doing a Release build.
GOTO done

: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
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\
cd ..
zip -9r ..\%1 SDL
cd ..
erase /q /f /s zipper

:done