build-scripts/windows-buildbot-zipper.bat
author Ryan C. Gordon <icculus@icculus.org>
Fri, 12 Aug 2016 19:59:00 -0400
changeset 10266 c09f06c4e8c8
parent 9264 c1eab6da82c1
permissions -rw-r--r--
emscripten: send fake mouse events for touches, like other targets do. (This really should be handled at the higher level and not in the individual targets, but this fixes the immediate bug.)
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
9264
c1eab6da82c1 Fixed some paths in the new buildbot windows zipper script.
Ryan C. Gordon <icculus@icculus.org>
parents: 9263
diff changeset
     6
IF EXIST VisualC\Win32\Release GOTO okaydir
9263
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\
9264
c1eab6da82c1 Fixed some paths in the new buildbot windows zipper script.
Ryan C. Gordon <icculus@icculus.org>
parents: 9263
diff changeset
    22
copy ..\..\VisualC\Win32\Release\SDL2.dll lib\win32\
c1eab6da82c1 Fixed some paths in the new buildbot windows zipper script.
Ryan C. Gordon <icculus@icculus.org>
parents: 9263
diff changeset
    23
copy ..\..\VisualC\Win32\Release\SDL2.lib lib\win32\
c1eab6da82c1 Fixed some paths in the new buildbot windows zipper script.
Ryan C. Gordon <icculus@icculus.org>
parents: 9263
diff changeset
    24
copy ..\..\VisualC\Win32\Release\SDL2main.lib lib\win32\
9263
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