From c8ed4f7b7f57dda8de8c96ed7731fdf49960066a Mon Sep 17 00:00:00 2001 From: Lluis Sanchez Date: Wed, 23 Sep 2015 17:39:12 +0200 Subject: Add source-url argument support in configure.sh This might be used in the future to specify the url of the page from which the build has been downloaded. --- scripts/configure.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/configure.cs b/scripts/configure.cs index 823f88f7cc..9f951b5c64 100644 --- a/scripts/configure.cs +++ b/scripts/configure.cs @@ -123,6 +123,7 @@ namespace MonoDevelop.Configuration public readonly string ProductVersion; public readonly string ProductVersionText; public readonly string CompatVersion; + public readonly string SourceUrl; public readonly string AssemblyVersion = "4.0.0.0"; public readonly string ReleaseId; public readonly PlatformInfo PlatformInfo; @@ -135,6 +136,7 @@ namespace MonoDevelop.Configuration Version = SystemUtil.Grep(versionTxt, @"Version=(.*)"); ProductVersionText = SystemUtil.Grep(versionTxt, "Label=(.*)"); CompatVersion = SystemUtil.Grep(versionTxt, "CompatVersion=(.*)"); + SourceUrl = SystemUtil.Grep(versionTxt, "SourceUrl=(.*)"); Version ver = new Version(Version); int vbuild = ver.Build != -1 ? ver.Build : 0; @@ -153,8 +155,12 @@ namespace MonoDevelop.Configuration pinfo = (PlatformInfo)ser.Deserialize (sr); } - if (pinfo.AppId != null) - File.WriteAllText (Path.Combine (targetDir, "updateinfo"), pinfo.AppId + " " + ReleaseId); + if (pinfo.AppId != null) { + var content = pinfo.AppId + " " + ReleaseId; + if (SourceUrl != null) + content += "\nsource-url:" + SourceUrl; + File.WriteAllText (Path.Combine (targetDir, "updateinfo"), content); + } if (pinfo.UpdaterId != null) File.WriteAllText (Path.Combine (targetDir, "updateinfo.updater"), pinfo.UpdaterId + " " + pinfo.UpdaterVersion); -- cgit v1.2.3