]> git.proxmox.com Git - mirror_edk2.git/blame - edksetup.sh
Renamed to match filename naming recommendations.
[mirror_edk2.git] / edksetup.sh
CommitLineData
b9e16a84 1#
000c06d2 2# Copyright (c) 2006 - 2008, 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 18if [ \
000c06d2 19 -z "$1" -o \
a310886b 20 "$1" = "-?" -o \
21 "$1" = "-h" -o \
22 "$1" = "--help" \
23 ]
0fff0c26 24then
000c06d2 25 echo BaseTools Usage: \'. edksetup.sh BaseTools\'
26 echo Ant Tools Usage: \'. edksetup.sh [AntBuild \| ForceRebuild]\'
a310886b 27 echo
28 echo Please note: This script must be \'sourced\' so the environment can be changed.
29 echo \(Either \'. edksetup.sh\' or \'source edksetup.sh\'\)
30 return
31fi
32
000c06d2 33if [ "$1" = BaseTools ]
ace425da 34then
000c06d2 35 if [ -z "$WORKSPACE" ]
36 then
37 . BaseTools/BuildEnv $*
38 else
39 . $WORKSPACE/BaseTools/BuildEnv $*
40 fi
0fff0c26 41else
000c06d2 42 if [ "$1" = AntBuild -o "$1" = ForceRebuild ]
43 then
44 if [ -z "$WORKSPACE" ]
45 then
46 if [ "$1" = AntBuild ]
47 then
48 shift
49 fi
50 . Tools/OldBuildEnv $*
51 else
52 . $WORKSPACE/Tools/OldBuildEnv $*
53 fi
54 else
55 echo Please run \'. edksetup.sh --help\' for help.
56 fi
a310886b 57fi
b9e16a84 58
b9e16a84 59