Fixed the "rebuild" failure issue
authorjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Thu, 25 Oct 2007 08:27:03 +0000 (08:27 +0000)
committerjwang36 <jwang36@7335b38e-4728-0410-8992-fb3ffe349368>
Thu, 25 Oct 2007 08:27:03 +0000 (08:27 +0000)
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@849 7335b38e-4728-0410-8992-fb3ffe349368

toolsetup.bat

index 325159a..1429983 100755 (executable)
@@ -40,6 +40,9 @@ popd
 if not defined EDK_TOOLS_PATH set EDK_TOOLS_PATH=%BASE_TOOLS_PATH%\r
 mkdir %EDK_TOOLS_PATH%\Bin\Win32\r
 \r
+if not defined ORIGINAL_PATH set ORIGINAL_PATH=%PATH%\r
+set PATH=%EDK_TOOLS_PATH%\Bin\Win32;%EDK_TOOLS_PATH%\Bin;%ORIGINAL_PATH%\r
+\r
 :path_ok\r
 \r
 if /I "%1"=="-h" goto Usage\r
@@ -52,9 +55,6 @@ if /I "%1"=="build" goto build
 if /I "%1"=="rebuild" goto rebuild\r
 if NOT "%1"=="" goto Usage\r
 \r
-if not defined ORIGINAL_PATH set ORIGINAL_PATH=%PATH%\r
-set PATH=%EDK_TOOLS_PATH%\Bin\Win32;%EDK_TOOLS_PATH%\Bin;%ORIGINAL_PATH%\r
-\r
 IF NOT EXIST "%EDK_TOOLS_PATH%\Bin\Win32\BootSectImage.exe" goto build\r
 IF NOT EXIST "%EDK_TOOLS_PATH%\Bin\Win32\build.exe" goto build\r
 IF NOT EXIST "%EDK_TOOLS_PATH%\Bin\Win32\EfiLdrImage.exe" goto build\r