]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Set correct workspace when workspace is not set.
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 26 Jan 2010 04:58:56 +0000 (04:58 +0000)
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 26 Jan 2010 04:58:56 +0000 (04:58 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9816 6f19259b-4bc3-4df7-8a09-765794883524

edksetup.bat

index 7c7f52f6dd145c0c96a8b7286716383cdcb2fd7d..33301542785f07a53a536983988802ad4c6f76af 100755 (executable)
 pushd .\r
 cd %~dp0\r
 \r
-if defined WORKSPACE (\r
-  if %WORKSPACE% == %CD% (\r
-    @REM workspace is not changed.\r
-    @goto ParseArgs\r
-  )\r
+if not defined WORKSPACE (\r
+  @goto SetWorkSpace\r
+)\r
+\r
+if %WORKSPACE% == %CD% (\r
+  @REM Workspace is not changed.\r
+  @goto ParseArgs\r
 )\r
 \r
+:SetWorkSpace\r
 @REM set new workspace\r
 @REM clear EFI_SOURCE and EDK_SOURCE for the new workspace\r
 set WORKSPACE=%CD%\r