[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH 0/3][XenNet] Change Copyright statement
On 23/02/2023 09:50, Owen Smith wrote: 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): [XenNet] Allow rebranding file copyright string [XenNet] Add resource file to coinstaller [XenNet] Scripted replacement of Copyright notices in source LICENSE | 4 +- build.ps1 | 4 ++ include/ethernet.h | 4 +- include/store_interface.h | 4 +- include/suspend_interface.h | 4 +- include/tcpip.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/xennet_coinst.def | 4 +- src/coinst/xennet_coinst.rc | 58 ++++++++++++++++++++++ src/xennet.inf | 4 +- src/xennet/adapter.c | 4 +- src/xennet/adapter.h | 4 +- src/xennet/assert.h | 4 +- src/xennet/dbg_print.h | 4 +- src/xennet/driver.c | 4 +- src/xennet/driver.h | 4 +- src/xennet/miniport.c | 4 +- src/xennet/miniport.h | 4 +- src/xennet/receiver.c | 4 +- src/xennet/receiver.h | 4 +- src/xennet/string.c | 4 +- src/xennet/string.h | 4 +- src/xennet/transmitter.c | 4 +- src/xennet/transmitter.h | 4 +- src/xennet/util.h | 4 +- src/xennet/xennet.rc | 6 ++- vs2015/xennet_coinst/xennet_coinst.vcxproj | 6 +++ vs2017/xennet_coinst/xennet_coinst.vcxproj | 6 +++ vs2019/xennet_coinst/xennet_coinst.vcxproj | 6 +++ vs2022/xennet_coinst/xennet_coinst.vcxproj | 6 +++ 37 files changed, 176 insertions(+), 30 deletions(-) create mode 100644 src/coinst/xennet_coinst.rc Series... Acked-by: Paul Durrant <paul@xxxxxxx>
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |