Fix help command scroll issue. Also add FV space used, and free space to dir command.
[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.
2b1473c1 10#
11# In *inux environment, the build tools's source is required and need to be compiled
12# firstly, please reference https://edk2.tianocore.org/unix-getting-started.html to
13# to get how to setup build tool.
14#
15# After build tool is downloaded and compiled, a soft symbol linker need to be created
16# at <workspace>/Conf. For example: ln -s /work/BaseTools /work/edk2/Conf/BaseToolsSource.
17#
b9e16a84 18# Setup the environment for unix-like systems running a bash-like shell.
6dbea978 19# This file must be "sourced" not merely executed. For example: ". edksetup.sh"
2b1473c1 20#
6dbea978 21# CYGWIN users: Your path and filename related environment variables should be
22# set up in the unix style. This script will make the necessary conversions to
23# windows style.
2b1473c1 24#
25# Please reference edk2 user manual for more detail descriptions at https://edk2.tianocore.org/files/documents/64/494/EDKII_UserManual.pdf
26#
b9e16a84 27
a310886b 28if [ \
000c06d2 29 -z "$1" -o \
a310886b 30 "$1" = "-?" -o \
31 "$1" = "-h" -o \
32 "$1" = "--help" \
33 ]
0fff0c26 34then
3a6b4559 35 echo BaseTools Usage: \'. edksetup.sh\'
a310886b 36 echo
37 echo Please note: This script must be \'sourced\' so the environment can be changed.
38 echo \(Either \'. edksetup.sh\' or \'source edksetup.sh\'\)
39 return
40fi
41
3a6b4559 42if [ -z "$WORKSPACE" ]
ace425da 43then
3a6b4559 44 . BaseTools/BuildEnv $*
0fff0c26 45else
3a6b4559 46 . $WORKSPACE/BaseTools/BuildEnv $*
a310886b 47fi
b9e16a84 48
b9e16a84 49