diff options
author | Alexander Köplinger <alex.koeplinger@outlook.com> | 2017-03-16 23:15:32 +0300 |
---|---|---|
committer | Alexander Köplinger <alex.koeplinger@outlook.com> | 2017-03-16 23:38:31 +0300 |
commit | c0dd559ee445a7f24f6866894e5771718dc71e9b (patch) | |
tree | 9b2990f83ccde79fa4c9bae17d563bfcd93e961d /msvc | |
parent | ddae67da8a0218d4a072c99a69a2e26150b4a3a9 (diff) |
Include Mono version in corlib version
This makes it possible to version the runtime<->corlib interface
for each version branch independently and fixes the problem
of monolite getting overwritten by changes in different branches
when corlib version is still the same.
We're moving definition of the corlib version into configure.ac
so we can more easily bake the Mono version into it.
Diffstat (limited to 'msvc')
-rwxr-xr-x | msvc/winsetup.bat | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/msvc/winsetup.bat b/msvc/winsetup.bat index e6afb26d8ff..d3729144a61 100755 --- a/msvc/winsetup.bat +++ b/msvc/winsetup.bat @@ -22,6 +22,7 @@ IF NOT %ERRORLEVEL% == 0 ( ECHO copy %WIN_CONFIG_H% %CONFIG_H% copy %WIN_CONFIG_H% %CONFIG_H% %windir%\system32\WindowsPowerShell\v1.0\powershell.exe -NonInteractive -Command "(Get-Content %CONFIG_H%) -replace '#MONO_VERSION#', (Select-String -path %CONFIGURE_AC% -pattern 'AC_INIT\(mono, \[(.*)\]').Matches[0].Groups[1].Value | Set-Content %CONFIG_H%" 2>&1 + %windir%\system32\WindowsPowerShell\v1.0\powershell.exe -NonInteractive -Command "$mono_version=[int[]](Select-String -path %CONFIGURE_AC% -pattern 'AC_INIT\(mono, \[(.*)\]').Matches[0].Groups[1].Value.Split('.'); $corlib_counter=[int](Select-String -path %CONFIGURE_AC% -pattern 'MONO_CORLIB_COUNTER=(.*)').Matches[0].Groups[1].Value; (Get-Content %CONFIG_H%) -replace '#MONO_CORLIB_VERSION#',('1{0:00}{1:00}{2:00}{3:000}' -f $mono_version[0],$mono_version[1],$mono_version[2],$corlib_counter) | Set-Content %CONFIG_H%" 2>&1 ) %windir%\system32\WindowsPowerShell\v1.0\powershell.exe -executionpolicy bypass -NonInteractive -File compare-config-files.ps1 %EGLIB_WIN_CONFIG_H% %EGLIB_CONFIG_H% 2>&1 |