2015-06-21 17:33:46 +02:00
|
|
|
@echo off
|
|
|
|
rem just a helper batch file for collecting up files and zipping them.
|
2020-05-19 08:56:02 +02:00
|
|
|
rem usage: windows-buildbot-zipper.bat <target> <slndir> <zipfilename>
|
2015-06-21 17:33:46 +02:00
|
|
|
rem must be run from root of SDL source tree.
|
|
|
|
|
2020-05-19 08:56:02 +02:00
|
|
|
IF EXIST %2\%1\Release GOTO okaydir
|
2015-06-21 17:33:46 +02:00
|
|
|
echo Please run from root of source tree after doing a Release build.
|
|
|
|
GOTO done
|
|
|
|
|
2020-05-19 08:56:02 +02:00
|
|
|
:okaydir
|
2015-06-21 17:33:46 +02:00
|
|
|
erase /q /f /s zipper
|
|
|
|
IF EXIST zipper GOTO zippermade
|
|
|
|
mkdir zipper
|
|
|
|
:zippermade
|
2020-05-19 08:56:02 +02:00
|
|
|
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
|
2015-06-21 17:33:46 +02:00
|
|
|
cd ..
|
|
|
|
erase /q /f /s zipper
|
|
|
|
|
|
|
|
:done
|
|
|
|
|