build-scripts/windows-buildbot-zipper.bat
author Ryan C. Gordon <icculus@icculus.org>
Fri, 25 Nov 2016 00:13:13 -0500
changeset 10651 f0065b8e6541
parent 9264 c1eab6da82c1
child 11168 93e083869445
permissions -rw-r--r--
macOS: removed deprecated UpdateSystemActivity() call.

The non-deprecated approach (IOPMAssertion) already exists in SDL, and is
available in Mac OS X 10.6 and later (although it was incorrectly listed as
10.7 and later in SDL). Since SDL now requires 10.6 or later, this is no
longer conditionally used.
     1 @echo off
     2 rem just a helper batch file for collecting up files and zipping them.
     3 rem usage: windows-buildbot-zipper.bat <zipfilename>
     4 rem must be run from root of SDL source tree.
     5 
     6 IF EXIST VisualC\Win32\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 cd zipper
    16 mkdir SDL
    17 cd SDL
    18 mkdir include
    19 mkdir lib
    20 mkdir lib\win32
    21 copy ..\..\include\*.h include\
    22 copy ..\..\VisualC\Win32\Release\SDL2.dll lib\win32\
    23 copy ..\..\VisualC\Win32\Release\SDL2.lib lib\win32\
    24 copy ..\..\VisualC\Win32\Release\SDL2main.lib lib\win32\
    25 cd ..
    26 zip -9r ..\%1 SDL
    27 cd ..
    28 erase /q /f /s zipper
    29 
    30 :done
    31