build-scripts/windows-buildbot-zipper.bat
author Manuel Alfayate Corchete
Thu, 22 Oct 2020 19:51:57 +0200
changeset 14191 7bb6793cd70f
parent 13825 7c2c79e87060
permissions -rw-r--r--
kmsdrm: Add comment about KMSDRM_VideoQuit() changes.
     1 @echo off
     2 rem just a helper batch file for collecting up files and zipping them.
     3 rem usage: windows-buildbot-zipper.bat <target> <slndir> <zipfilename>
     4 rem must be run from root of SDL source tree.
     5 
     6 IF EXIST %2\%1\Release GOTO okaydir
     7 echo Please run from root of source tree after doing a Release build.
     8 GOTO done
     9 
    10 :okaydir
    11 erase /q /f /s zipper
    12 IF EXIST zipper GOTO zippermade
    13 mkdir zipper
    14 :zippermade
    15 mkdir zipper\SDL
    16 mkdir zipper\SDL\include
    17 mkdir zipper\SDL\lib
    18 copy include\*.h include\
    19 copy %2\%1\Release\SDL2.dll zipper\SDL\lib\
    20 copy %2\%1\Release\SDL2.lib zipper\SDL\lib\
    21 copy %2\%1\Release\SDL2main.lib zipper\SDL\lib\
    22 cd zipper
    23 zip -9r ..\%3 SDL
    24 cd ..
    25 erase /q /f /s zipper
    26 
    27 :done
    28