blob: 69b79f06c1911c6cc05bc3a8b51b1824193539ab [file] [log] [blame]
bbahnsenb9e16a82006-04-24 16:38:10 +00001#
2# Copyright (c) 2006, 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
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.
bbahnsen6dbea972006-11-14 17:57:07 +000012# 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.
bbahnsenb9e16a82006-04-24 16:38:10 +000017
bbahnsen48186272006-07-14 08:02:04 +000018if [ \
jljustena3108862007-10-16 20:52:46 +000019 "$1" = "-?" -o \
20 "$1" = "-h" -o \
21 "$1" = "--help" \
22 ]
bbahnsen48186272006-07-14 08:02:04 +000023then
jljustena3108862007-10-16 20:52:46 +000024 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
bbahnsen48186272006-07-14 08:02:04 +000030fi
jljustena3108862007-10-16 20:52:46 +000031
32if [ "$1" = NewBuild ]
33then
34 echo To utilize the new build system, run
35 echo " . Tools/BuildEnv [options]"
36 echo Try \'. Tools/BuildEnv --help\' for more information.
37 return
38else
39 . $WORKSPACE/Tools/OldBuildEnv $*
bbahnsenb9e16a82006-04-24 16:38:10 +000040fi
jljustena3108862007-10-16 20:52:46 +000041
42