source: build/bhep/trunk/obuild/setup.bat @ 274

Last change on this file since 274 was 274, checked in by barrand, 17 years ago
File size: 1.3 KB
Line 
1@ECHO OFF
2
3REM #
4REM # File produced by the obuild tool version 1.0
5REM # for the package bhep with version v1r4p2.
6REM #
7
8REM #////////////////////////////////////////////////
9REM # Usage :
10REM #   DOS> setup
11REM # or :
12REM #   DOS> setup.bat
13REM # or :
14REM #   DOS> call setup.bat
15REM #////////////////////////////////////////////////
16
17SET obuild_bhep_path=%~dp0
18REM # Remove ending \obuild\
19SET obuild_bhep_path=%obuild_bhep_path:~0,-8%
20
21IF "%OBUILD_PLATFORM%" == "" (
22  IF "%OS%" == "" ECHO Environment variable OS not found. & GOTO obuild_return
23  SET obuild_platform=%OS%
24) ELSE (
25  SET obuild_platform=%OBUILD_PLATFORM%
26)
27
28IF "%obuild_platform%" == "" (
29  ECHO obuild_platform variable not defined.
30  GOTO obuild_return
31)
32
33IF "%OBUILD_DIR_BIN%" == "" (
34  SET obuild_dir_bin=bin_obuild
35) ELSE (
36  SET obuild_dir_bin=%OBUILD_DIR_BIN%
37)
38
39IF "%obuild_dir_bin%" == "" (
40  ECHO obuild_dir_bin variable not defined.
41  GOTO obuild_return
42)
43
44REM # Set environment variables of this package :
45
46IF DEFINED PATH GOTO else_if_path_bhep_0
47  SET PATH=%obuild_bhep_path%\%obuild_dir_bin%
48  GOTO end_if_path_bhep_0
49:else_if_path_bhep_0
50  SET PATH=%PATH%;%obuild_bhep_path%\%obuild_dir_bin%
51:end_if_path_bhep_0
52
53:obuild_return
54
55SET obuild_bhep_path=
56
57REM # FIXME SET obuild_platform=
58REM # FIXME SET obuild_dir_bin=
59
60@ECHO ON
Note: See TracBrowser for help on using the repository browser.