diff options
author | Alexander Köplinger <alex.koeplinger@outlook.com> | 2015-12-07 04:16:54 +0300 |
---|---|---|
committer | Alexander Köplinger <alex.koeplinger@outlook.com> | 2015-12-08 00:19:19 +0300 |
commit | 361691c2a6bb658d2e623375eb84fe906df09112 (patch) | |
tree | ea001523afd546a30f6aa26556931afd455e2c1c /msvc/winsetup.bat | |
parent | 53ad517b70888a22e75132072051e5be4ff4d637 (diff) |
[msvc] Automatically update (win-)config.h with the correct version number
A small powershell command grabs the version number from configure.ac and uses it during winsetup.bat,
this way we don't have to manually keep them in sync.
Diffstat (limited to 'msvc/winsetup.bat')
-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 f67a8545693..336778204f2 100755 --- a/msvc/winsetup.bat +++ b/msvc/winsetup.bat @@ -4,6 +4,7 @@ if exist config.h if not exist cygconfig.h copy config.h cygconfig.h if exist eglib\config.h if not exist eglib\cygconfig.h copy eglib\config.h eglib\cygconfig.h copy winconfig.h config.h copy eglib\winconfig.h eglib\config.h +powershell -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" goto end :error echo fatal error: the VSDepenancies directory was not found in the "mono" directory |