pineapple-src/externals/SDL/build-scripts/windows-buildbot-zipper.bat

29 lines
693 B
Batchfile
Raw Normal View History

2021-04-18 03:35:25 +00:00
@echo off
rem just a helper batch file for collecting up files and zipping them.
2021-04-20 19:40:33 +00:00
rem usage: windows-buildbot-zipper.bat <target> <slndir> <zipfilename>
2021-04-18 03:35:25 +00:00
rem must be run from root of SDL source tree.
2021-04-20 19:40:33 +00:00
IF EXIST %2\%1\Release GOTO okaydir
2021-04-18 03:35:25 +00:00
echo Please run from root of source tree after doing a Release build.
GOTO done
2021-04-20 19:40:33 +00:00
:okaydir
2021-04-18 03:35:25 +00:00
erase /q /f /s zipper
IF EXIST zipper GOTO zippermade
mkdir zipper
:zippermade
2021-04-20 19:40:33 +00: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\
2021-04-18 03:35:25 +00:00
cd zipper
2021-04-20 19:40:33 +00:00
zip -9r ..\%3 SDL
2021-04-18 03:35:25 +00:00
cd ..
erase /q /f /s zipper
:done