Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/configure.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/configure.cs b/scripts/configure.cs
index 3f04d1538f..ee478950d4 100644
--- a/scripts/configure.cs
+++ b/scripts/configure.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@@ -193,6 +193,10 @@ namespace MonoDevelop.Configuration
txt += "Git revision: " + head + "\n";
txt += "Build date: " + DateTime.Now.ToString ("yyyy-MM-dd HH:mm:sszz") + "\n";
+ var buildBranch = Environment.GetEnvironmentVariable ("BUILD_SOURCEBRANCHNAME");
+ if (!string.IsNullOrWhiteSpace (buildBranch))
+ txt += "Build branch: " + buildBranch;
+
File.WriteAllText(Path.Combine(targetDir, "buildinfo"), txt);
}