diff options
author | Lluis Sanchez <lluis@xamarin.com> | 2015-09-23 18:39:12 +0300 |
---|---|---|
committer | Lluis Sanchez <lluis@xamarin.com> | 2015-09-23 18:40:14 +0300 |
commit | c8ed4f7b7f57dda8de8c96ed7731fdf49960066a (patch) | |
tree | c8165d48432eee0c22626fb3df9c87a920eca642 /scripts | |
parent | d0a849a7a5f1691b31eab70c36f88b5edf3eaf8c (diff) |
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.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/configure.cs | 10 |
1 files 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); |