You've already forked linux-packaging-mono
Imported Upstream version 5.0.0.42
Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
This commit is contained in:
parent
1190d13a04
commit
6bdd276d05
@@ -12,19 +12,9 @@ SET VERSION_H=..\mono\mini\version.h
|
||||
|
||||
ECHO Setting up Mono configuration headers...
|
||||
|
||||
IF EXIST %CONFIG_H% (
|
||||
IF NOT EXIST %CYG_CONFIG_H% (
|
||||
ECHO copy %CONFIG_H% %CYG_CONFIG_H%
|
||||
copy %CONFIG_H% %CYG_CONFIG_H%
|
||||
)
|
||||
)
|
||||
|
||||
IF EXIST %EGLIB_CONFIG_H% (
|
||||
IF NOT EXIST %EGLIB_CYG_CONFIG_H% (
|
||||
ECHO copy %EGLIB_CONFIG_H% %EGLIB_CYG_CONFIG_H%
|
||||
copy %EGLIB_CONFIG_H% %EGLIB_CYG_CONFIG_H%
|
||||
)
|
||||
)
|
||||
REM Backup existing config.h into cygconfig.h if its not already replaced.
|
||||
%windir%\system32\WindowsPowerShell\v1.0\powershell.exe -executionpolicy bypass -NonInteractive -File backup-config-files.ps1 %CONFIG_H% %CYG_CONFIG_H% 2>&1
|
||||
%windir%\system32\WindowsPowerShell\v1.0\powershell.exe -executionpolicy bypass -NonInteractive -File backup-config-files.ps1 %EGLIB_CONFIG_H% %EGLIB_CYG_CONFIG_H% 2>&1
|
||||
|
||||
%windir%\system32\WindowsPowerShell\v1.0\powershell.exe -executionpolicy bypass -NonInteractive -File compare-config-files.ps1 %WIN_CONFIG_H% %CONFIG_H% %CONFIGURE_AC% 2>&1
|
||||
|
||||
@@ -32,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
|
||||
|
||||
Reference in New Issue
Block a user