author | Jon Chatten |
Thu, 25 Feb 2010 14:55:31 +0000 | |
branch | fix |
changeset 266 | 23ff30e04b42 |
parent 231 | 0f26bc078e36 |
child 276 | e80c44f576df |
child 336 | a2b6ca74ba48 |
permissions | -rwxr-xr-x |
3 | 1 |
@rem |
2 |
@rem Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 |
@rem All rights reserved. |
|
4 |
@rem This component and the accompanying materials are made available |
|
5 |
@rem under the terms of the License "Eclipse Public License v1.0" |
|
6 |
@rem which accompanies this distribution, and is available |
|
7 |
@rem at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 |
@rem |
|
9 |
@rem Initial Contributors: |
|
10 |
@rem Nokia Corporation - initial contribution. |
|
11 |
@rem |
|
12 |
@rem Contributors: |
|
13 |
@rem |
|
14 |
@rem Description: |
|
15 |
@rem |
|
16 |
||
17 |
@SETLOCAL |
|
18 |
@SET HOSTPLATFORM=win 32 |
|
19 |
@SET HOSTPLATFORM_DIR=win32 |
|
20 |
||
21 |
||
22 |
@REM Automatically find SBS_HOME if it is not set |
|
23 |
@IF NOT "%SBS_HOME%"=="" goto foundhome |
|
24 |
@SET RAPTORBINDIR=%~dp0 |
|
25 |
@SET WD=%cd% |
|
113
3d2908a2186b
Release note: sf bug 1558: [Raptor] auto-setting of SBS_HOME by sbs.bat fails when drives differ
Jon Chatten
parents:
19
diff
changeset
|
26 |
@cd /d %RAPTORBINDIR%\.. |
3 | 27 |
@SET SBS_HOME=%cd% |
113
3d2908a2186b
Release note: sf bug 1558: [Raptor] auto-setting of SBS_HOME by sbs.bat fails when drives differ
Jon Chatten
parents:
19
diff
changeset
|
28 |
@cd /d %WD% |
3 | 29 |
:foundhome |
30 |
||
31 |
@REM Use the python set by the environment if possible |
|
32 |
@SET __PYTHON__=%SBS_PYTHON% |
|
231
0f26bc078e36
revert SBS_PYTHON change
Richard Taylor <richard.i.taylor@nokia.com>
parents:
182
diff
changeset
|
33 |
@IF "%__PYTHON__%"=="" SET __PYTHON__=%SBS_HOME%\win32\python264\python.exe |
0f26bc078e36
revert SBS_PYTHON change
Richard Taylor <richard.i.taylor@nokia.com>
parents:
182
diff
changeset
|
34 |
@SET PYTHONPATH=%SBS_PYTHONPATH% |
0f26bc078e36
revert SBS_PYTHON change
Richard Taylor <richard.i.taylor@nokia.com>
parents:
182
diff
changeset
|
35 |
@IF "%PYTHONPATH%"=="" SET PYTHONPATH=%SBS_HOME%\win32\python264 |
3 | 36 |
|
37 |
@REM Use the mingw set by the environment if possible |
|
38 |
@SET __MINGW__=%SBS_MINGW% |
|
39 |
@IF "%__MINGW__%"=="" SET __MINGW__=%SBS_HOME%\win32\mingw |
|
40 |
||
41 |
@REM Use the cygwin set by the environment if possible |
|
42 |
@SET __CYGWIN__=%SBS_CYGWIN% |
|
43 |
@IF "%__CYGWIN__%"=="" SET __CYGWIN__=%SBS_HOME%\win32\cygwin |
|
44 |
||
45 |
@REM add to the search path |
|
119
f293a5f26578
Prevern Path and PATH variables from messing things up
timothy.murphy@nokia.com
parents:
19
diff
changeset
|
46 |
@REM (make sure that we don't get into trouble if there are Path and PATH variables) |
f293a5f26578
Prevern Path and PATH variables from messing things up
timothy.murphy@nokia.com
parents:
19
diff
changeset
|
47 |
@SET PATH_TEMP=%__MINGW__%\bin;%__CYGWIN__%\bin;%SBS_HOME%\win32\bin;%PATH% |
f293a5f26578
Prevern Path and PATH variables from messing things up
timothy.murphy@nokia.com
parents:
19
diff
changeset
|
48 |
@SET PATH= |
f293a5f26578
Prevern Path and PATH variables from messing things up
timothy.murphy@nokia.com
parents:
19
diff
changeset
|
49 |
@SET PATH=%PATH_TEMP% |
f293a5f26578
Prevern Path and PATH variables from messing things up
timothy.murphy@nokia.com
parents:
19
diff
changeset
|
50 |
@SET PATH_TEMP= |
3 | 51 |
|
52 |
@REM Make sure that /tmp is not set incorrectly for sbs |
|
53 |
@umount -u /tmp >NUL 2>NUL |
|
54 |
@mount -u %TEMP% /tmp >NUL 2>NUL |
|
55 |
@umount -u / >NUL 2>NUL |
|
56 |
@mount -u %__CYGWIN__% / >NUL 2>NUL |
|
57 |
||
58 |
@REM Tell CYGWIN not to map unix security attributes to windows to |
|
59 |
@REM prevent raptor from potentially creating read-only files: |
|
60 |
@set CYGWIN=nontsec nosmbntsec |
|
61 |
||
62 |
@REM Run Raptor with all the arguments. |
|
63 |
@%__PYTHON__% %SBS_HOME%\python\raptor_start.py %* |
|
64 |
||
65 |
@ENDLOCAL |
|
66 |
@cmd /c exit /b %ERRORLEVEL% |