build-scripts/windows-buildbot-zipper.bat
author Ryan C. Gordon <icculus@icculus.org>
Thu, 04 Dec 2014 02:09:07 -0500
changeset 9263 4f3aec35b6fc
child 9264 c1eab6da82c1
permissions -rw-r--r--
Added a script to handle packing up Windows builds for the buildbot.
icculus@9263
     1
@echo off
icculus@9263
     2
rem just a helper batch file for collecting up files and zipping them.
icculus@9263
     3
rem usage: windows-buildbot-zipper.bat <zipfilename>
icculus@9263
     4
rem must be run from root of SDL source tree.
icculus@9263
     5
icculus@9263
     6
IF EXIST VisualC\SDL\Win32\Release GOTO okaydir
icculus@9263
     7
echo Please run from root of source tree after doing a Release build.
icculus@9263
     8
GOTO done
icculus@9263
     9
icculus@9263
    10
:okaydir
icculus@9263
    11
erase /q /f /s zipper
icculus@9263
    12
IF EXIST zipper GOTO zippermade
icculus@9263
    13
mkdir zipper
icculus@9263
    14
:zippermade
icculus@9263
    15
cd zipper
icculus@9263
    16
mkdir SDL
icculus@9263
    17
cd SDL
icculus@9263
    18
mkdir include
icculus@9263
    19
mkdir lib
icculus@9263
    20
mkdir lib\win32
icculus@9263
    21
copy ..\..\include\*.h include\
icculus@9263
    22
copy ..\..\VisualC\SDL\Win32\Release\SDL2.dll lib\win32\
icculus@9263
    23
copy ..\..\VisualC\SDL\Win32\Release\SDL2.lib lib\win32\
icculus@9263
    24
copy ..\..\VisualC\SDLmain\Win32\Release\SDL2main.lib lib\win32\
icculus@9263
    25
cd ..
icculus@9263
    26
zip -9r ..\%1 SDL
icculus@9263
    27
cd ..
icculus@9263
    28
erase /q /f /s zipper
icculus@9263
    29
icculus@9263
    30
:done
icculus@9263
    31