From dce95aa1d02737b7f8604c1472c2ccf9e65cefcb Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Thu, 7 Oct 2010 16:20:23 +0000 Subject: [PATCH] Support branches svn path=/trunk/boinc/; revision=22468 --- win_build/buildenv.cmd | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/win_build/buildenv.cmd b/win_build/buildenv.cmd index 6748b937ff..393aa866be 100644 --- a/win_build/buildenv.cmd +++ b/win_build/buildenv.cmd @@ -28,9 +28,10 @@ SET BUILDROOT=%~dps0 SET BUILDROOT=%BUILDROOT:\win_bu~1\=% rem Detect Branch Name -PUSHD %BUILDROOT%\.. +PUSHD %~dp0\..\.. +FOR /F %%I IN ("%~dp0\..") DO SET _ArgBUILDROOTLFNSUPPORT=%%~fI FOR /D %%I IN (*.*) DO ( - IF /I "%CD%\%%I" == "%BUILDROOT%" SET BUILDBRANCHNAME=%%I + IF /I "%CD%\%%I" == "%_ArgBUILDROOTLFNSUPPORT%" SET BUILDBRANCHNAME=%%I ) POPD @@ -147,8 +148,8 @@ rem number, we have had to rev the branch name for certain releases due rem to late changing features. 6.6 vs 6.6a FOR /F "usebackq tokens=3,* delims=_" %%I IN ('%BUILDBRANCHNAME%') DO ( SET BUILDTOOLSNAME=boinc_depends_win_%BUILDCOMPILERDETECTED%_%%J - SET BUILDTOOLSROOT=%BUILDROOT%\..\%BUILDTOOLSNAME% ) +SET BUILDTOOLSROOT=%BUILDROOT%\..\%BUILDTOOLSNAME% IF NOT EXIST %BUILDTOOLSROOT%\win_build\subversion ( ECHO Software NOT Detected: Build Tools...