diff options
author | Jay Krell <jay.krell@cornell.edu> | 2018-07-30 11:25:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-30 11:25:35 +0300 |
commit | c6b8cecb9d6c547d7c5d58721cbf472caa3aae9f (patch) | |
tree | d6e75585e11ee875bf78018eb86de52aba93df5f /msvc/scripts | |
parent | a30df89f73c6c01954a735ac02b75d8f07888478 (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-x | msvc/scripts/genconsts.cs | 4 |
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}\""); } } |