1 ##############################################################################
3 ## compare-config-content
5 ##############################################################################
11 Compares mono build configuration content detecting
diff's.
16 ## first config source to compare.
19 ## second config source to compare.
23 if ((Test-Path -isvalid $mono_config_source1) -And (Test-Path $mono_config_source1))
25 $mono_config_source1_content = Get-Content $mono_config_source1
29 $mono_config_source1_content = $mono_config_source1
32 if ((Test-Path -isvalid $mono_config_source2) -And (Test-Path $mono_config_source2))
34 $mono_config_source2_content = Get-Content $mono_config_source2
38 $mono_config_source2_content = $mono_config_source2
42 $comparedLines = Compare-Object $mono_config_source1_content $mono_config_source2_content -IncludeEqual | Sort-Object { $_.InputObject.ReadCount }
43 $comparedLines | foreach {
44 if($_.SideIndicator -ne "==")
46 Write-Host "Changes detected."