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

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Krell <jay.krell@cornell.edu>2018-07-30 11:25:35 +0300
committerGitHub <noreply@github.com>2018-07-30 11:25:35 +0300
commitc6b8cecb9d6c547d7c5d58721cbf472caa3aae9f (patch)
treed6e75585e11ee875bf78018eb86de52aba93df5f /msvc/scripts
parenta30df89f73c6c01954a735ac02b75d8f07888478 (diff)
Change corlib version to a string, so that you can use uuidgen (or a git hash or github PR). (#9787)
Diffstat (limited to 'msvc/scripts')
-rwxr-xr-xmsvc/scripts/genconsts.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/msvc/scripts/genconsts.cs b/msvc/scripts/genconsts.cs
index 1ec83657e4e..253d9068791 100755
--- a/msvc/scripts/genconsts.cs
+++ b/msvc/scripts/genconsts.cs
@@ -61,11 +61,11 @@ public static class Program {
monoVersion += ".0";
Console.WriteLine ($"MONO_VERSION={monoVersion}");
- m = Regex.Match (output, "MONO_CORLIB_VERSION=([0-9]+)");
+ m = Regex.Match (output, "MONO_CORLIB_VERSION=([^\\s]+)");
if (!m.Success)
return 1;
monoCorlibVersion = m.Groups[1].Value;
- Console.WriteLine ($"MONO_CORLIB_VERSION={monoCorlibVersion}");
+ Console.WriteLine ($"MONO_CORLIB_VERSION=\"{monoCorlibVersion}\"");
}
}