# HG changeset patch # User Daniel Jacobs # Date 1266507841 0 # Node ID a2b6ca74ba48a818b248013129e2361eb810b568 # Parent e69156db029030b73c6917f8adb07ce09c2586e6 Changes for Cygwin 1.7 support. diff -r e69156db0290 -r a2b6ca74ba48 sbsv2/raptor/bin/sbs.bat --- a/sbsv2/raptor/bin/sbs.bat Thu Feb 18 15:38:39 2010 +0000 +++ b/sbsv2/raptor/bin/sbs.bat Thu Feb 18 15:44:01 2010 +0000 @@ -1,5 +1,5 @@ @rem -@rem Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). +@rem Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). @rem All rights reserved. @rem This component and the accompanying materials are made available @rem under the terms of the License "Eclipse Public License v1.0" @@ -15,49 +15,7 @@ @rem @SETLOCAL -@SET HOSTPLATFORM=win 32 -@SET HOSTPLATFORM_DIR=win32 - - -@REM Automatically find SBS_HOME if it is not set -@IF NOT "%SBS_HOME%"=="" goto foundhome -@SET RAPTORBINDIR=%~dp0 -@SET WD=%cd% -@cd /d %RAPTORBINDIR%\.. -@SET SBS_HOME=%cd% -@cd /d %WD% -:foundhome - -@REM Use the python set by the environment if possible -@SET __PYTHON__=%SBS_PYTHON% -@IF "%__PYTHON__%"=="" SET __PYTHON__=%SBS_HOME%\win32\python264\python.exe -@SET PYTHONPATH=%SBS_PYTHONPATH% -@IF "%PYTHONPATH%"=="" SET PYTHONPATH=%SBS_HOME%\win32\python264 - -@REM Use the mingw set by the environment if possible -@SET __MINGW__=%SBS_MINGW% -@IF "%__MINGW__%"=="" SET __MINGW__=%SBS_HOME%\win32\mingw - -@REM Use the cygwin set by the environment if possible -@SET __CYGWIN__=%SBS_CYGWIN% -@IF "%__CYGWIN__%"=="" SET __CYGWIN__=%SBS_HOME%\win32\cygwin - -@REM add to the search path -@REM (make sure that we don't get into trouble if there are Path and PATH variables) -@SET PATH_TEMP=%__MINGW__%\bin;%__CYGWIN__%\bin;%SBS_HOME%\win32\bin;%PATH% -@SET PATH= -@SET PATH=%PATH_TEMP% -@SET PATH_TEMP= - -@REM Make sure that /tmp is not set incorrectly for sbs -@umount -u /tmp >NUL 2>NUL -@mount -u %TEMP% /tmp >NUL 2>NUL -@umount -u / >NUL 2>NUL -@mount -u %__CYGWIN__% / >NUL 2>NUL - -@REM Tell CYGWIN not to map unix security attributes to windows to -@REM prevent raptor from potentially creating read-only files: -@set CYGWIN=nontsec nosmbntsec +@CALL sbs_env.bat @REM Run Raptor with all the arguments. @%__PYTHON__% %SBS_HOME%\python\raptor_start.py %* diff -r e69156db0290 -r a2b6ca74ba48 sbsv2/raptor/bin/sbs_filter.bat --- a/sbsv2/raptor/bin/sbs_filter.bat Thu Feb 18 15:38:39 2010 +0000 +++ b/sbsv2/raptor/bin/sbs_filter.bat Thu Feb 18 15:44:01 2010 +0000 @@ -14,31 +14,8 @@ @rem Description: @rem -@REM Automatically find SBS_HOME if it is not set -@IF NOT "%SBS_HOME%"=="" goto foundhome -@SET RAPTORBINDIR=%~dp0 -@SET WD=%cd% -@cd %RAPTORBINDIR%\.. -@SET SBS_HOME=%cd% -@cd %WD% -:foundhome - -@REM Use the cygwin set by the environment if possible -@SET __CYGWIN__=%SBS_CYGWIN% -@IF "%__CYGWIN__%"=="" SET __CYGWIN__=%SBS_HOME%\win32\cygwin - -@REM add to the search path -@SET PATH=%__CYGWIN__%\bin;%PATH% - -@REM Make sure that /tmp is not set incorrectly for sbs -@umount -u /tmp >NUL 2>NUL -@mount -u %TEMP% /tmp >NUL 2>NUL -@umount -u / >NUL 2>NUL -@mount -u %__CYGWIN__% / >NUL 2>NUL - -@REM Tell CYGWIN not to map unix security attributes to windows to -@REM prevent raptor from potentially creating read-only files: -@set CYGWIN=nontsec nosmbntsec +@SETLOCAL +@CALL sbs_env.bat @REM Run with all the arguments. @bash %SBS_HOME%\bin\sbs_filter %* diff -r e69156db0290 -r a2b6ca74ba48 sbsv2/raptor/test/run.bat --- a/sbsv2/raptor/test/run.bat Thu Feb 18 15:38:39 2010 +0000 +++ b/sbsv2/raptor/test/run.bat Thu Feb 18 15:44:01 2010 +0000 @@ -1,5 +1,5 @@ @rem -@rem Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). +@rem Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). @rem All rights reserved. @rem This component and the accompanying materials are made available @rem under the terms of the License "Eclipse Public License v1.0" @@ -16,27 +16,16 @@ @echo off -set HOSTPLATFORM=win 32 -set HOSTPLATFORM_DIR=win32 - -setlocal -set __PYTHON__=%SBS_PYTHON% -if "%__PYTHON__%"=="" set __PYTHON__=%SBS_HOME%\win32\python264\python.exe +@SETLOCAL +@CALL %SBS_HOME%\bin\sbs_env.bat -set __TEST_SUITE__=%SBS_HOME%\test\common\run_tests.pyc -set __TEST_SUITE_PY__=%SBS_HOME%\test\common\run_tests.py - -@REM Mount '/' in cygwin, in case it is not done automatically -set __CYGWIN__=%SBS_CYGWIN% -if "%__CYGWIN__%"=="" set __CYGWIN__=%SBS_HOME%\win32\cygwin -%__CYGWIN__%\bin\umount -u "/" >NUL 2>NUL -%__CYGWIN__%\bin\mount -u "%__CYGWIN__%" "/" +@SET __TEST_SUITE__=%SBS_HOME%\test\common\run_tests.pyc +@SET __TEST_SUITE_PY__=%SBS_HOME%\test\common\run_tests.py @REM If the Python source exists, use it. Else use the byte-compiled Python code -if exist %__TEST_SUITE_PY__% SET __TEST_SUITE__=%__TEST_SUITE_PY__% +@IF EXIST %__TEST_SUITE_PY__% SET __TEST_SUITE__=%__TEST_SUITE_PY__% @REM Then run the test suite with all the arguments -%__PYTHON__% -tt %__TEST_SUITE__% %* +@%__PYTHON__% -tt %__TEST_SUITE__% %* -endlocal -@echo on +@ENDLOCAL