mirror of https://github.com/acidanthera/audk.git
edksetup.sh:
Support both BaseTools and AntTools. Do not require the user to use BaseTools/BuildEnv for the BaseTools support. Use this command to for help: . edksetup.sh --help git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4687 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
d9fa86f90a
commit
000c06d236
33
edksetup.sh
33
edksetup.sh
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# Copyright (c) 2006 - 2007, Intel Corporation
|
# Copyright (c) 2006 - 2008, Intel Corporation
|
||||||
# All rights reserved. This program and the accompanying materials
|
# All rights reserved. This program and the accompanying materials
|
||||||
# are licensed and made available under the terms and conditions of the BSD License
|
# are licensed and made available under the terms and conditions of the BSD License
|
||||||
# which accompanies this distribution. The full text of the license may be found at
|
# which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -16,27 +16,44 @@
|
||||||
# windows style.
|
# windows style.
|
||||||
|
|
||||||
if [ \
|
if [ \
|
||||||
|
-z "$1" -o \
|
||||||
"$1" = "-?" -o \
|
"$1" = "-?" -o \
|
||||||
"$1" = "-h" -o \
|
"$1" = "-h" -o \
|
||||||
"$1" = "--help" \
|
"$1" = "--help" \
|
||||||
]
|
]
|
||||||
then
|
then
|
||||||
echo BaseTools Usage: \'. edksetup.sh NewBuild\'
|
echo BaseTools Usage: \'. edksetup.sh BaseTools\'
|
||||||
echo Ant Tools Usage: \'. edksetup.sh [ForceRebuild]\'
|
echo Ant Tools Usage: \'. edksetup.sh [AntBuild \| ForceRebuild]\'
|
||||||
echo
|
echo
|
||||||
echo Please note: This script must be \'sourced\' so the environment can be changed.
|
echo Please note: This script must be \'sourced\' so the environment can be changed.
|
||||||
echo \(Either \'. edksetup.sh\' or \'source edksetup.sh\'\)
|
echo \(Either \'. edksetup.sh\' or \'source edksetup.sh\'\)
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$1" = NewBuild ]
|
if [ "$1" = BaseTools ]
|
||||||
then
|
then
|
||||||
echo To utilize the new build system, run
|
if [ -z "$WORKSPACE" ]
|
||||||
echo " . BaseTools/BuildEnv [options]"
|
then
|
||||||
echo Try \'. BaseTools/BuildEnv --help\' for more information.
|
. BaseTools/BuildEnv $*
|
||||||
return
|
else
|
||||||
|
. $WORKSPACE/BaseTools/BuildEnv $*
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
|
if [ "$1" = AntBuild -o "$1" = ForceRebuild ]
|
||||||
|
then
|
||||||
|
if [ -z "$WORKSPACE" ]
|
||||||
|
then
|
||||||
|
if [ "$1" = AntBuild ]
|
||||||
|
then
|
||||||
|
shift
|
||||||
|
fi
|
||||||
|
. Tools/OldBuildEnv $*
|
||||||
|
else
|
||||||
. $WORKSPACE/Tools/OldBuildEnv $*
|
. $WORKSPACE/Tools/OldBuildEnv $*
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo Please run \'. edksetup.sh --help\' for help.
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue