2 # Copyright (c) 2006 - 2008, Intel Corporation
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
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.
11 # Setup the environment for unix-like systems running a bash-like shell.
12 # This file must be "sourced" not merely executed. For example: ". edksetup.sh"
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
25 echo BaseTools Usage
: \'. edksetup.sh BaseTools
\'
26 echo Ant Tools Usage
: \'. edksetup.sh
[AntBuild \| ForceRebuild
]\'
28 echo Please note
: This
script must be
\'sourced
\' so the environment can be changed.
29 echo \
(Either
\'. edksetup.sh
\' or
\'source edksetup.sh
\'\
)
33 if [ "$1" = BaseTools
]
35 if [ -z "$WORKSPACE" ]
37 . BaseTools
/BuildEnv $
*
39 .
$WORKSPACE/BaseTools
/BuildEnv $
*
42 if [ "$1" = AntBuild
-o "$1" = ForceRebuild
]
44 if [ -z "$WORKSPACE" ]
46 if [ "$1" = AntBuild
]
50 . Tools
/OldBuildEnv $
*
52 .
$WORKSPACE/Tools
/OldBuildEnv $
*
55 echo Please run
\'. edksetup.sh
--help\' for help.