[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH 0/3][XenVif] Change Copyright statement
From: Owen Smith <owen.smith@xxxxxxxxxx> Due to a transfer of copyright ownership from Citrix to Cloud Software Group, the copyright notices in all source files should be updated. This patch series includes some minor functional changes to allow setting a particular copyright string in the embedded resources, and a scripted change to source files. Powershell script that was used to generate the source file copyright changes: Function Multiline-Replace { param( [string]$Filename, [string]$ToReplace, [array]$ReplaceWith ) $content = Get-Content $Filename $replace = $false $output = "" $content | ForEach { $line = $_ if ($line.Contains($ToReplace)) { $replace = $true $ReplaceWith | ForEach { $output += $line.Replace($ToReplace, $_) + "`n" } } else { $output += $line + "`n" } } if ($replace) { Write-Host "Replacing: " $Filename $output | Set-Content $Filename } else { Write-Host "Ignoring: " $Filename } } Function Replace-Filestrings { param( [array]$FilleTypes, [string]$ToReplace, [array]$Replacements, [array]$ExcludeList ) $FileTypes | ForEach { Get-ChildItem $_ -Recurse | ForEach-Object { $filename = $_ if (($ExcludeList | %{ $filename -Like $_ }) -Contains $True) { Write-Host "Excluding: " $filename } else { Multiline-Replace $_ $ToReplace $Replacements } } } } $ExcludeList = @("*include\xen\*", "*\obj\*") $Replace = "Copyright (c) Citrix Systems Inc." $Replacements = @("/* Copyright (c) Xen Project.", " * Copyright (c) Cloud Software Group, Inc.") $FileTypes = @("*.c", "*.h", "*.rc") Replace-Filestrings $FileTypes ('/* ' + $Replace) $Replacements $ExcludeList $Replacements = @("; // Copyright (c) Xen Project.", "; // Copyright (c) Cloud Software Group, Inc.") $FileTypes = @("*.mc") Replace-Filestrings $FileTypes ('; // ' + $Replace) $Replacements $ExcludeList $Replacements = @("; Copyright (c) Xen Project.", "; Copyright (c) Cloud Software Group, Inc.") $FileTypes = @("*.inf", "*.def") Replace-Filestrings $FileTypes ('; ' + $Replace) $Replacements $ExcludeList $Replacements = @("Copyright (c) Xen Project.", "Copyright (c) Cloud Software Group, Inc.") $FileTypes = @("LICENSE") Replace-Filestrings $FileTypes $Replace $Replacements $ExcludeList Owen Smith (3): [XenVif] Allow rebranding file copyright string [XenVif] Add resource file to coinstaller [XenVif] Scripted replacement of Copyright notices in source LICENSE | 4 +- build.ps1 | 4 ++ include/cache_interface.h | 4 +- include/debug_interface.h | 4 +- include/ethernet.h | 4 +- include/evtchn_interface.h | 4 +- include/gnttab_interface.h | 4 +- include/ipx.h | 4 +- include/llc.h | 4 +- include/range_set_interface.h | 4 +- include/revision.h | 4 +- include/store_interface.h | 4 +- include/suspend_interface.h | 4 +- include/tcpip.h | 4 +- include/unplug_interface.h | 4 +- include/version.tmpl | 1 + include/vif_interface.h | 4 +- include/xen-types.h | 4 +- include/xen-version.h | 4 +- include/xen-warnings.h | 4 +- include/xen.h | 4 +- scripts/genfiles.ps1 | 1 + src/coinst/coinst.c | 4 +- src/coinst/xenvif_coinst.def | 4 +- src/coinst/xenvif_coinst.rc | 58 ++++++++++++++++++++++ src/xenvif.inf | 4 +- src/xenvif/assert.h | 4 +- src/xenvif/bus.c | 4 +- src/xenvif/bus.h | 4 +- src/xenvif/checksum.c | 4 +- src/xenvif/checksum.h | 4 +- src/xenvif/controller.c | 4 +- src/xenvif/controller.h | 4 +- src/xenvif/dbg_print.h | 4 +- src/xenvif/driver.c | 4 +- src/xenvif/driver.h | 4 +- src/xenvif/fdo.c | 4 +- src/xenvif/fdo.h | 4 +- src/xenvif/frontend.c | 4 +- src/xenvif/frontend.h | 4 +- src/xenvif/link.c | 4 +- src/xenvif/link.h | 4 +- src/xenvif/mac.c | 4 +- src/xenvif/mac.h | 4 +- src/xenvif/mrsw.h | 4 +- src/xenvif/mutex.h | 4 +- src/xenvif/names.h | 4 +- src/xenvif/parse.c | 4 +- src/xenvif/parse.h | 4 +- src/xenvif/pdo.c | 4 +- src/xenvif/pdo.h | 4 +- src/xenvif/receiver.c | 4 +- src/xenvif/receiver.h | 4 +- src/xenvif/registry.c | 4 +- src/xenvif/registry.h | 4 +- src/xenvif/settings.c | 4 +- src/xenvif/settings.h | 4 +- src/xenvif/thread.c | 4 +- src/xenvif/thread.h | 4 +- src/xenvif/transmitter.c | 4 +- src/xenvif/transmitter.h | 4 +- src/xenvif/types.h | 4 +- src/xenvif/util.h | 4 +- src/xenvif/vif.c | 4 +- src/xenvif/vif.h | 4 +- src/xenvif/xenvif.rc | 6 ++- vs2015/xenvif_coinst/xenvif_coinst.vcxproj | 6 +++ vs2017/xenvif_coinst/xenvif_coinst.vcxproj | 6 +++ vs2019/xenvif_coinst/xenvif_coinst.vcxproj | 6 +++ vs2022/xenvif_coinst/xenvif_coinst.vcxproj | 6 +++ 70 files changed, 275 insertions(+), 63 deletions(-) create mode 100644 src/coinst/xenvif_coinst.rc -- 2.39.0.windows.1
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |