[banshee] build: allow build-banshee.bat to be called from the root dir (windows)



commit 7a8111d832bbd1cc458302c8899fe72b7479b0d9
Author: Andrés G. Aragoneses <knocte gmail com>
Date:   Wed Jul 10 02:52:02 2013 +0200

    build: allow build-banshee.bat to be called from the root dir (windows)
    
    If we tried running build\windows\build-banshee.bat from the root folder
    of the repository instead of inside build\windows, it would fail. Now
    the script can be run from both locations.

 build/windows/build-banshee.bat |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/build/windows/build-banshee.bat b/build/windows/build-banshee.bat
index 7d5c655..ecffa76 100644
--- a/build/windows/build-banshee.bat
+++ b/build/windows/build-banshee.bat
@@ -2,7 +2,12 @@
 SET v40-30319="%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild"
 SET v35="%WINDIR%\Microsoft.NET\Framework\v3.5\msbuild"
 
-CD ..\..
+SET SOLUTION="Banshee.sln"
+
+IF EXIST "..\..\%SOLUTION%" (
+       CD ..\..
+)
+
 ECHO "Looking for Microsoft.NET MSBuild..."
 IF EXIST %v40-30319% (
        ECHO "Building with Microsoft.NET v4.0 MSBuild"
@@ -15,7 +20,7 @@ IF EXIST %v40-30319% (
        GOTO END
 )
 
-%MSBUILD_PATH% Banshee.sln /p:Configuration=Windows /p:Platform="Any CPU" && ^
+%MSBUILD_PATH% %SOLUTION% /p:Configuration=Windows /p:Platform="Any CPU" && ^
 ECHO 'Running "post-build.bat"' && ^
 build\windows\post-build.bat && ^
 CD build\windows


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]