equal
deleted
inserted
replaced
1 @rem |
1 @rem |
2 @rem Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 @rem Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 @rem All rights reserved. |
3 @rem All rights reserved. |
4 @rem This component and the accompanying materials are made available |
4 @rem This component and the accompanying materials are made available |
5 @rem under the terms of the License "Eclipse Public License v1.0" |
5 @rem under the terms of the License "Eclipse Public License v1.0" |
6 @rem which accompanies this distribution, and is available |
6 @rem which accompanies this distribution, and is available |
7 @rem at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 @rem at the URL "http://www.eclipse.org/legal/epl-v10.html". |
26 @cd /d %RAPTORBINDIR%\.. |
26 @cd /d %RAPTORBINDIR%\.. |
27 @SET SBS_HOME=%cd% |
27 @SET SBS_HOME=%cd% |
28 @cd /d %WD% |
28 @cd /d %WD% |
29 :foundhome |
29 :foundhome |
30 |
30 |
31 @REM Use the python set by the environment if possible |
31 @REM The python and PYTHONPATH used by Raptor are determined by, in order of precedence: |
|
32 @REM 1. the SBS_PYTHON and SBS_PYTHONPATH environment variables (if set) |
|
33 @REM 2. the python shipped locally with Raptor (if present) |
|
34 @REM 3. the python on the system PATH and the PYTHONPATH set in the system environment |
|
35 |
|
36 @SET __LOCAL_PYTHON__=%SBS_HOME%\win32\python264\python.exe |
|
37 @IF NOT "%SBS_PYTHON%"=="" GOTO sbspython |
|
38 @IF EXIST %__LOCAL_PYTHON__% GOTO localpython |
|
39 @SET __PYTHON__=python.exe |
|
40 @GOTO sbspythonpath |
|
41 |
|
42 :sbspython |
32 @SET __PYTHON__=%SBS_PYTHON% |
43 @SET __PYTHON__=%SBS_PYTHON% |
33 @IF "%__PYTHON__%"=="" SET __PYTHON__=python.exe |
44 @GOTO sbspythonpath |
|
45 |
|
46 :localpython |
|
47 @SET __PYTHON__=%__LOCAL_PYTHON__% |
|
48 @SET SBS_PYTHON=%__PYTHON__% |
|
49 @SET PYTHONPATH= |
|
50 |
|
51 :sbspythonpath |
34 @IF NOT "%SBS_PYTHONPATH%"=="" SET PYTHONPATH=%SBS_PYTHONPATH% |
52 @IF NOT "%SBS_PYTHONPATH%"=="" SET PYTHONPATH=%SBS_PYTHONPATH% |
35 |
53 |
36 @REM Use the mingw set by the environment if possible |
54 @REM Use the mingw set by the environment if possible |
37 @SET __MINGW__=%SBS_MINGW% |
55 @SET __MINGW__=%SBS_MINGW% |
38 @IF "%__MINGW__%"=="" SET __MINGW__=%SBS_HOME%\win32\mingw |
56 @IF "%__MINGW__%"=="" SET __MINGW__=%SBS_HOME%\win32\mingw |
54 @umount -u / >NUL 2>NUL |
72 @umount -u / >NUL 2>NUL |
55 @mount -u %__CYGWIN__% / >NUL 2>NUL |
73 @mount -u %__CYGWIN__% / >NUL 2>NUL |
56 |
74 |
57 @REM Tell CYGWIN not to map unix security attributes to windows to |
75 @REM Tell CYGWIN not to map unix security attributes to windows to |
58 @REM prevent raptor from potentially creating read-only files: |
76 @REM prevent raptor from potentially creating read-only files: |
59 @set CYGWIN=nontsec nosmbntsec |
77 @SET CYGWIN=nontsec nosmbntsec |
60 |
78 |
61 @REM Run Raptor with all the arguments. |
79 @REM Run Raptor with all the arguments. |
62 @%__PYTHON__% %SBS_HOME%\python\raptor_start.py %* |
80 @%__PYTHON__% %SBS_HOME%\python\raptor_start.py %* |
63 |
81 |
64 @ENDLOCAL |
82 @ENDLOCAL |