Merge pull request #3806 from BrzVlad/feature-parallel-gc-final
[mono-project.git] / msvc / backup-config-files.ps1
blob691968ec3070e48bf1576b5c031f988edd8bc387
1 ##############################################################################
2 ##
3 ## backup-config-files
4 ##
5 ##############################################################################
7 <#
9 .SYNOPSIS
11 Backup mono build configuration files, if needed.
15 param(
17 ## config header file.
18 $mono_config,
20 ## cygconfig header file.
21 $mono_cygconfig
24 $include_cygconfig = Get-Content $mono_config | Select-String -pattern '#include[ ]*\"cygconfig.h\"[ ]*'
25 if($include_cygconfig -eq $null)
27 ## Backup mono_config into mono_cygconfig, overweiring any existing file.
28 Write-Host "Backup " $mono_config " -> " $mono_cygconfig
29 Copy-Item $mono_config $mono_cygconfig -Force
32 exit 0;