3 SET CONFIG_H=..\config.h
4 SET EGLIB_CONFIG_H=..\eglib\config.h
5 SET CYG_CONFIG_H=..\cygconfig.h
6 SET EGLIB_CYG_CONFIG_H=..\eglib\cygconfig.h
7 SET WIN_CONFIG_H=..\winconfig.h
8 SET EGLIB_WIN_CONFIG_H=..\eglib\winconfig.h
9 SET CONFIGURE_AC=..\configure.ac
10 SET VERSION_H=..\mono\mini\version.h
13 ECHO Setting up Mono configuration headers...
16 IF NOT EXIST %CYG_CONFIG_H% (
17 ECHO copy %CONFIG_H% %CYG_CONFIG_H%
18 copy %CONFIG_H% %CYG_CONFIG_H%
22 IF EXIST %EGLIB_CONFIG_H% (
23 IF NOT EXIST %EGLIB_CYG_CONFIG_H% (
24 ECHO copy %EGLIB_CONFIG_H% %EGLIB_CYG_CONFIG_H%
25 copy %EGLIB_CONFIG_H% %EGLIB_CYG_CONFIG_H%
29 %windir%\system32\WindowsPowerShell\v1.0\powershell.exe -executionpolicy bypass -NonInteractive -File compare-config-files.ps1 %WIN_CONFIG_H% %CONFIG_H% %CONFIGURE_AC% >$null 2>&1
31 IF NOT %ERRORLEVEL% == 0 (
32 ECHO copy %WIN_CONFIG_H% %CONFIG_H%
33 copy %WIN_CONFIG_H% %CONFIG_H%
34 %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%" >$null 2>&1
37 %windir%\system32\WindowsPowerShell\v1.0\powershell.exe -executionpolicy bypass -NonInteractive -File compare-config-files.ps1 %EGLIB_WIN_CONFIG_H% %EGLIB_CONFIG_H% >$null 2>&1
39 IF NOT %ERRORLEVEL% == 0 (
40 ECHO copy %EGLIB_WIN_CONFIG_H% %EGLIB_CONFIG_H%
41 copy %EGLIB_WIN_CONFIG_H% %EGLIB_CONFIG_H%
44 SET VERSION_CONTENT="#define FULL_VERSION \"Visual Studio built mono\""
45 %windir%\system32\WindowsPowerShell\v1.0\powershell.exe -executionpolicy bypass -NonInteractive -File compare-config-content.ps1 %VERSION_CONTENT% %VERSION_H%
48 IF NOT %ERRORLEVEL% == 0 (
49 ECHO Configure %VERSION_H%
50 ECHO #define FULL_VERSION "Visual Studio built mono"> %VERSION_H%
53 ECHO Successfully setup Mono configuration headers.