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:
authorAlexander Köplinger <alex.koeplinger@outlook.com>2015-12-07 04:16:54 +0300
committerAlexander Köplinger <alex.koeplinger@outlook.com>2015-12-08 00:19:19 +0300
commit361691c2a6bb658d2e623375eb84fe906df09112 (patch)
treeea001523afd546a30f6aa26556931afd455e2c1c /msvc/winsetup.bat
parent53ad517b70888a22e75132072051e5be4ff4d637 (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-xmsvc/winsetup.bat1
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