diff options
author | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-01-26 04:58:56 +0000 |
---|---|---|
committer | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-01-26 04:58:56 +0000 |
commit | dff2673eec6ee1792fad41833a5dc76499e99a31 (patch) | |
tree | 271200b9877cd5fde87ae1afc44e85c9a137ad36 | |
parent | 2e76dc7e79e1c2bc74cb1567352ad882e2d8d0c7 (diff) | |
download | edk2-platforms-dff2673eec6ee1792fad41833a5dc76499e99a31.tar.xz |
Set correct workspace when workspace is not set.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9816 6f19259b-4bc3-4df7-8a09-765794883524
-rwxr-xr-x | edksetup.bat | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/edksetup.bat b/edksetup.bat index 7c7f52f6dd..3330154278 100755 --- a/edksetup.bat +++ b/edksetup.bat @@ -30,13 +30,16 @@ pushd .
cd %~dp0
-if defined WORKSPACE (
- if %WORKSPACE% == %CD% (
- @REM workspace is not changed.
- @goto ParseArgs
- )
+if not defined WORKSPACE (
+ @goto SetWorkSpace
+)
+
+if %WORKSPACE% == %CD% (
+ @REM Workspace is not changed.
+ @goto ParseArgs
)
+:SetWorkSpace
@REM set new workspace
@REM clear EFI_SOURCE and EDK_SOURCE for the new workspace
set WORKSPACE=%CD%
|