build-scripts/windows-buildbot-zipper.bat
changeset 13825 7c2c79e87060
parent 11169 df9e78e15a16
equal deleted inserted replaced
13824:1c789a0308ec 13825:7c2c79e87060
     1 @echo off
     1 @echo off
     2 rem just a helper batch file for collecting up files and zipping them.
     2 rem just a helper batch file for collecting up files and zipping them.
     3 rem usage: windows-buildbot-zipper.bat <zipfilename>
     3 rem usage: windows-buildbot-zipper.bat <target> <slndir> <zipfilename>
     4 rem must be run from root of SDL source tree.
     4 rem must be run from root of SDL source tree.
     5 
     5 
     6 IF EXIST VisualC\Win32\Release GOTO okaywin32dir
     6 IF EXIST %2\%1\Release GOTO okaydir
     7 echo Please run from root of source tree after doing a Release build.
     7 echo Please run from root of source tree after doing a Release build.
     8 GOTO done
     8 GOTO done
     9 
     9 
    10 :okaywin32dir
    10 :okaydir
    11 IF EXIST VisualC\x64\Release GOTO okaydirs
       
    12 echo Please run from root of source tree after doing a Release build.
       
    13 GOTO done
       
    14 
       
    15 :okaydirs
       
    16 erase /q /f /s zipper
    11 erase /q /f /s zipper
    17 IF EXIST zipper GOTO zippermade
    12 IF EXIST zipper GOTO zippermade
    18 mkdir zipper
    13 mkdir zipper
    19 :zippermade
    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\
    20 cd zipper
    22 cd zipper
    21 mkdir SDL
    23 zip -9r ..\%3 SDL
    22 cd SDL
       
    23 mkdir include
       
    24 mkdir lib
       
    25 mkdir lib\win32
       
    26 mkdir lib\win64
       
    27 copy ..\..\include\*.h include\
       
    28 copy ..\..\VisualC\Win32\Release\SDL2.dll lib\win32\
       
    29 copy ..\..\VisualC\Win32\Release\SDL2.lib lib\win32\
       
    30 copy ..\..\VisualC\Win32\Release\SDL2main.lib lib\win32\
       
    31 copy ..\..\VisualC\x64\Release\SDL2.dll lib\win64\
       
    32 copy ..\..\VisualC\x64\Release\SDL2.lib lib\win64\
       
    33 copy ..\..\VisualC\x64\Release\SDL2main.lib lib\win64\
       
    34 cd ..
       
    35 zip -9r ..\%1 SDL
       
    36 cd ..
    24 cd ..
    37 erase /q /f /s zipper
    25 erase /q /f /s zipper
    38 
    26 
    39 :done
    27 :done
    40 
    28