build-scripts/windows-buildbot-zipper.bat
author Ryan C. Gordon <icculus@icculus.org>
Thu, 04 Dec 2014 02:09:07 -0500
changeset 9263 4f3aec35b6fc
child 9264 c1eab6da82c1
permissions -rw-r--r--
Added a script to handle packing up Windows builds for the buildbot.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9263
4f3aec35b6fc Added a script to handle packing up Windows builds for the buildbot.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     1
@echo off
4f3aec35b6fc Added a script to handle packing up Windows builds for the buildbot.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     2
rem just a helper batch file for collecting up files and zipping them.
4f3aec35b6fc Added a script to handle packing up Windows builds for the buildbot.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     3
rem usage: windows-buildbot-zipper.bat <zipfilename>
4f3aec35b6fc Added a script to handle packing up Windows builds for the buildbot.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     4
rem must be run from root of SDL source tree.
4f3aec35b6fc Added a script to handle packing up Windows builds for the buildbot.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     5
4f3aec35b6fc Added a script to handle packing up Windows builds for the buildbot.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     6
IF EXIST VisualC\SDL\Win32\Release GOTO okaydir
4f3aec35b6fc Added a script to handle packing up Windows builds for the buildbot.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     7
echo Please run from root of source tree after doing a Release build.
4f3aec35b6fc Added a script to handle packing up Windows builds for the buildbot.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     8
GOTO done
4f3aec35b6fc Added a script to handle packing up Windows builds for the buildbot.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
     9
4f3aec35b6fc Added a script to handle packing up Windows builds for the buildbot.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    10
:okaydir
4f3aec35b6fc Added a script to handle packing up Windows builds for the buildbot.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    11
erase /q /f /s zipper
4f3aec35b6fc Added a script to handle packing up Windows builds for the buildbot.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    12
IF EXIST zipper GOTO zippermade
4f3aec35b6fc Added a script to handle packing up Windows builds for the buildbot.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    13
mkdir zipper
4f3aec35b6fc Added a script to handle packing up Windows builds for the buildbot.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    14
:zippermade
4f3aec35b6fc Added a script to handle packing up Windows builds for the buildbot.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    15
cd zipper
4f3aec35b6fc Added a script to handle packing up Windows builds for the buildbot.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    16
mkdir SDL
4f3aec35b6fc Added a script to handle packing up Windows builds for the buildbot.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    17
cd SDL
4f3aec35b6fc Added a script to handle packing up Windows builds for the buildbot.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    18
mkdir include
4f3aec35b6fc Added a script to handle packing up Windows builds for the buildbot.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    19
mkdir lib
4f3aec35b6fc Added a script to handle packing up Windows builds for the buildbot.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    20
mkdir lib\win32
4f3aec35b6fc Added a script to handle packing up Windows builds for the buildbot.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    21
copy ..\..\include\*.h include\
4f3aec35b6fc Added a script to handle packing up Windows builds for the buildbot.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    22
copy ..\..\VisualC\SDL\Win32\Release\SDL2.dll lib\win32\
4f3aec35b6fc Added a script to handle packing up Windows builds for the buildbot.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    23
copy ..\..\VisualC\SDL\Win32\Release\SDL2.lib lib\win32\
4f3aec35b6fc Added a script to handle packing up Windows builds for the buildbot.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    24
copy ..\..\VisualC\SDLmain\Win32\Release\SDL2main.lib lib\win32\
4f3aec35b6fc Added a script to handle packing up Windows builds for the buildbot.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    25
cd ..
4f3aec35b6fc Added a script to handle packing up Windows builds for the buildbot.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    26
zip -9r ..\%1 SDL
4f3aec35b6fc Added a script to handle packing up Windows builds for the buildbot.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    27
cd ..
4f3aec35b6fc Added a script to handle packing up Windows builds for the buildbot.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    28
erase /q /f /s zipper
4f3aec35b6fc Added a script to handle packing up Windows builds for the buildbot.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    29
4f3aec35b6fc Added a script to handle packing up Windows builds for the buildbot.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    30
:done
4f3aec35b6fc Added a script to handle packing up Windows builds for the buildbot.
Ryan C. Gordon <icculus@icculus.org>
parents:
diff changeset
    31