build-scripts/windows-buildbot-zipper.bat
author Ryan C. Gordon
Tue, 19 May 2020 02:56:02 -0400
changeset 13825 7c2c79e87060
parent 11169 df9e78e15a16
permissions -rw-r--r--
windows-buildbot-zipper.bat: Attempt to update for new buildbot.
icculus@9263
     1
@echo off
icculus@9263
     2
rem just a helper batch file for collecting up files and zipping them.
icculus@13825
     3
rem usage: windows-buildbot-zipper.bat <target> <slndir> <zipfilename>
icculus@9263
     4
rem must be run from root of SDL source tree.
icculus@9263
     5
icculus@13825
     6
IF EXIST %2\%1\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@13825
    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@13825
    15
mkdir zipper\SDL
icculus@13825
    16
mkdir zipper\SDL\include
icculus@13825
    17
mkdir zipper\SDL\lib
icculus@13825
    18
copy include\*.h include\
icculus@13825
    19
copy %2\%1\Release\SDL2.dll zipper\SDL\lib\
icculus@13825
    20
copy %2\%1\Release\SDL2.lib zipper\SDL\lib\
icculus@13825
    21
copy %2\%1\Release\SDL2main.lib zipper\SDL\lib\
icculus@13825
    22
cd zipper
icculus@13825
    23
zip -9r ..\%3 SDL
icculus@9263
    24
cd ..
icculus@9263
    25
erase /q /f /s zipper
icculus@9263
    26
icculus@9263
    27
:done
icculus@9263
    28