Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[r6913]: websites / build / trunk / docroot / builds / scripts / guests / orxbuildwin.bat Maximize Restore History

Download this file

orxbuildwin.bat    113 lines (99 with data), 4.0 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
rem
rem Description: This is a build script step for the Windows build machine.
rem
rem Copyright (c) 2010-2011 Rexx Language Association. All rights reserved.
rem
rem This program and the accompanying materials are made available under
rem the terms of the Common Public License v1.0 which accompanies this
rem distribution. A copy is also available at the following address:
rem http://www.ibm.com/developerworks/oss/CPLv1.0.htm
rem
rem Redistribution and use in source and binary forms, with or
rem without modification, are permitted provided that the following
rem conditions are met:
rem
rem Redistributions of source code must retain the above copyright
rem notice, this list of conditions and the following disclaimer.
rem Redistributions in binary form must reproduce the above copyright
rem notice, this list of conditions and the following disclaimer in
rem the documentation and/or other materials provided with the distribution.
rem
rem Neither the name of Rexx Language Association nor the names
rem of its contributors may be used to endorse or promote products
rem derived from this software without specific prior written permission.
rem
rem THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
rem "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
rem LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
rem FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
rem OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
rem SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
rem TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
rem OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
rem OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
rem NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
rem SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
rem
rem Author: W. David Ashley
rem
rem ---------------------------------------------------------------------------
rem
rem This script should be invoked as follows:
rem orxbuildwin.bat osname [buildtype [email]]
rem where:
rem osname is like "win7-i386"
rem buildtype is eother "trunk" or "branch"
rem email is an email address
rem
rem ---------------------------------------------------------------------------
rem get the command line arguments
set osname=%1
set buildtype=%2
if %buildtype%=="" set buildtype=trunk
set email=%3
rem set up our default environment variables
c:
cd \
set builddir=\buildtemp
set targetdir=p:\www\build\docroot\builds\interpreter-main
set lockfile=c:\ooRexxBuild.lock
rem check the lockfile and loop if it exists
:existcheck
if exits %lockfile% goto startsleep
touch %lockfile%
goto endsleep
:startsleep
echo Sleeping one minute
sleep 60
goto existcheck
:endsleep
rem remove the old builddir if it still exists
rmdir /S /Q %builddir%
rem set up our build environment variables
if %osname%==win7-i386 call "C:\Tools\Visual.Studio.2008\VC\vcvarsall.bat" x86
if %osname%==win7-i386 call "C:\Tools\MsSDK.v6.0\bin\SetEnv.cmd" /Release /x86 /XP
if %osname%==win7-x86_64 call "C:\Tools\Visual.Studio2008\VC\vcvarsall.bat" amd64
if %osname%==win7-x86_64 call "C:\Tools\MsSDK.v6.0\bin\SetEnv.cmd" /Release /x64 /XP
rexx orxbuildwin.setenv.rex \orxbuildwin.setenv.bat
call \orxbuildwin.setenv.bat
del \orxbuildwin.setenv.bat
set SRC_DRV=c:
set SRC_DIR=%builddir%
rem create the builddir
md %builddir%
setlocal
cd %builddir%
rem checkout the source code
if %buildtype%==branch svn co http://oorexx.svn.sourceforge.net/svnroot/oorexx/main/branch/4.1.0/trunk/ %builddir%
if %buildtype%==trunk svn co http://oorexx.svn.sourceforge.net/svnroot/oorexx/main/trunk/ %builddir%
rem perform the build
if not exist makeorx.bat exit
call makeorx.bat BOTH PACKAGE
rem copy the output files
rexx orxbuildwin.copy.rex %email%
cd \
endlocal
rem remove build subdirectory tree
rmdir /S /Q %builddir%
rem remove the lockfile
rm %lockfile%