[genproj] Do not use \r on the Unix parts of the build hook, add RabbitMQ hooks
[mono.git] / msvc / winsetup.bat
index 33a72f6b1bd8d7e0611fda19d337a2080e62eaed..73f2a1b5cfa27d9b76c8791eaf3d1dfbf6784552 100755 (executable)
@@ -1,6 +1,10 @@
 @echo off
 cd ..
+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
+%windir%\system32\WindowsPowerShell\v1.0\powershell.exe -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