2 # Copyright (c) 2006 - 2007, 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 if [ ! -e ./BaseTools/BuildEnv.py ]
16 echo Run this script from the base of your tree. For example:
17 echo " cd /Path/To/Edk/Root"
18 echo " . BaseTools/BuildEnv"
23 # First, we run a python tool that will ask the user to configure
24 # the environment in a (relatively) user friendly manner.
26 python ./BaseTools/BuildEnv.py $*
29 # The python tool will write ./Conf/BuildEnv.sh to actually configure
32 if [ -e ./Conf/BuildEnv.sh ]
36 echo There was a failure while trying to setup the environment!