b9e16a84 |
1 | # |
8352c27a |
2 | # Copyright (c) 2006 - 2007, Intel Corporation |
b9e16a84 |
3 | # All rights reserved. This program and the accompanying materials |
4 | # are licensed and made available under the terms and conditions of the BSD License |
5 | # which accompanies this distribution. The full text of the license may be found at |
6 | # http://opensource.org/licenses/bsd-license.php |
7 | # |
8 | # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, |
9 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. |
10 | |
11 | # Setup the environment for unix-like systems running a bash-like shell. |
6dbea978 |
12 | # This file must be "sourced" not merely executed. For example: ". edksetup.sh" |
13 | |
14 | # CYGWIN users: Your path and filename related environment variables should be |
15 | # set up in the unix style. This script will make the necessary conversions to |
16 | # windows style. |
b9e16a84 |
17 | |
a310886b |
18 | if [ \ |
19 | "$1" = "-?" -o \ |
20 | "$1" = "-h" -o \ |
21 | "$1" = "--help" \ |
22 | ] |
0fff0c26 |
23 | then |
a310886b |
24 | echo BaseTools Usage: \'. edksetup.sh NewBuild\' |
25 | echo Ant Tools Usage: \'. edksetup.sh [ForceRebuild]\' |
26 | echo |
27 | echo Please note: This script must be \'sourced\' so the environment can be changed. |
28 | echo \(Either \'. edksetup.sh\' or \'source edksetup.sh\'\) |
29 | return |
30 | fi |
31 | |
32 | if [ "$1" = NewBuild ] |
ace425da |
33 | then |
a310886b |
34 | echo To utilize the new build system, run |
8352c27a |
35 | echo " . BaseTools/BuildEnv [options]" |
36 | echo Try \'. BaseTools/BuildEnv --help\' for more information. |
a310886b |
37 | return |
0fff0c26 |
38 | else |
a310886b |
39 | . $WORKSPACE/Tools/OldBuildEnv $* |
40 | fi |
b9e16a84 |
41 | |
b9e16a84 |
42 | |