X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=edksetup.bat;h=31aa4719c410974ee43836072f73690ec2371224;hp=7c7f52f6dd145c0c96a8b7286716383cdcb2fd7d;hb=8e01b449de91cfcd1bdf473ae1bc766c22eb616e;hpb=d27bd9e95b313435fb243dbebc5dd10da4798c13 diff --git a/edksetup.bat b/edksetup.bat index 7c7f52f6dd..31aa4719c4 100755 --- a/edksetup.bat +++ b/edksetup.bat @@ -1,8 +1,8 @@ @REM @file @REM Windows batch file to setup a WORKSPACE environment @REM -@REM Copyright (c) 2006 - 2008, Intel Corporation -@REM All rights reserved. This program and the accompanying materials +@REM Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.
+@REM This program and the accompanying materials @REM are licensed and made available under the terms and conditions of the BSD License @REM which accompanies this distribution. The full text of the license may be found at @REM http://opensource.org/licenses/bsd-license.php @@ -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%