build-scripts/windows-buildbot-zipper.bat
changeset 11168 93e083869445
parent 9264 c1eab6da82c1
child 11169 df9e78e15a16
equal deleted inserted replaced
11167:333ababd02e4 11168:93e083869445
     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 <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 okaydir
     6 IF EXIST VisualC\Win32\Release GOTO okaywin32dir
     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 :okaydir
    10 :okaywin32dir
       
    11 IF EXIST VisualC\Win64\Release GOTO okaydirs
       
    12 echo Please run from root of source tree after doing a Release build.
       
    13 GOTO done
       
    14 
       
    15 :okaydirs
    11 erase /q /f /s zipper
    16 erase /q /f /s zipper
    12 IF EXIST zipper GOTO zippermade
    17 IF EXIST zipper GOTO zippermade
    13 mkdir zipper
    18 mkdir zipper
    14 :zippermade
    19 :zippermade
    15 cd zipper
    20 cd zipper
    16 mkdir SDL
    21 mkdir SDL
    17 cd SDL
    22 cd SDL
    18 mkdir include
    23 mkdir include
    19 mkdir lib
    24 mkdir lib
    20 mkdir lib\win32
    25 mkdir lib\win32
       
    26 mkdir lib\win64
    21 copy ..\..\include\*.h include\
    27 copy ..\..\include\*.h include\
    22 copy ..\..\VisualC\Win32\Release\SDL2.dll lib\win32\
    28 copy ..\..\VisualC\Win32\Release\SDL2.dll lib\win32\
    23 copy ..\..\VisualC\Win32\Release\SDL2.lib lib\win32\
    29 copy ..\..\VisualC\Win32\Release\SDL2.lib lib\win32\
    24 copy ..\..\VisualC\Win32\Release\SDL2main.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\
    25 cd ..
    34 cd ..
    26 zip -9r ..\%1 SDL
    35 zip -9r ..\%1 SDL
    27 cd ..
    36 cd ..
    28 erase /q /f /s zipper
    37 erase /q /f /s zipper
    29 
    38