]> git.proxmox.com Git - mirror_edk2.git/blobdiff - edksetup.bat
Clean up DEC files:
[mirror_edk2.git] / edksetup.bat
index 7c7f52f6dd145c0c96a8b7286716383cdcb2fd7d..31aa4719c410974ee43836072f73690ec2371224 100755 (executable)
@@ -1,8 +1,8 @@
 @REM @file\r
 @REM   Windows batch file to setup a WORKSPACE environment\r
 @REM\r
-@REM Copyright (c) 2006 - 2008, Intel Corporation\r
-@REM All rights reserved. This program and the accompanying materials\r
+@REM Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+@REM This program and the accompanying materials\r
 @REM are licensed and made available under the terms and conditions of the BSD License\r
 @REM which accompanies this distribution.  The full text of the license may be found at\r
 @REM http://opensource.org/licenses/bsd-license.php\r
 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