[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH 0/3][XenCons] 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): [XenCons] Allow rebranding file copyright string [XenCons] Add resource file to coinstaller [XenCons] Scripted replacement of Copyright notices in source LICENSE | 4 +- build.ps1 | 4 ++ include/cache_interface.h | 4 +- include/console_interface.h | 4 +- include/debug_interface.h | 4 +- include/evtchn_interface.h | 4 +- include/gnttab_interface.h | 4 +- include/store_interface.h | 4 +- include/suspend_interface.h | 4 +- include/version.tmpl | 1 + include/xen-types.h | 4 +- include/xen-version.h | 4 +- include/xen-warnings.h | 4 +- include/xen.h | 4 +- include/xencons_device.h | 4 +- scripts/genfiles.ps1 | 1 + src/coinst/coinst.c | 4 +- src/coinst/xencons_coinst.def | 4 +- src/coinst/xencons_coinst.rc | 57 ++++++++++++++++++++ src/monitor/messages.mc | 4 +- src/monitor/monitor.c | 4 +- src/monitor/xencons_monitor.rc | 6 ++- src/tty/tty.c | 4 +- src/tty/xencons_tty.rc | 6 ++- src/xencons.inf | 4 +- src/xencons/assert.h | 4 +- src/xencons/console.c | 4 +- src/xencons/console.h | 4 +- src/xencons/console_abi.h | 4 +- src/xencons/dbg_print.h | 4 +- src/xencons/driver.c | 4 +- src/xencons/driver.h | 4 +- src/xencons/fdo.c | 4 +- src/xencons/fdo.h | 4 +- src/xencons/frontend.c | 4 +- src/xencons/frontend.h | 4 +- src/xencons/mutex.h | 4 +- src/xencons/names.h | 4 +- src/xencons/pdo.c | 4 +- src/xencons/pdo.h | 4 +- src/xencons/registry.c | 4 +- src/xencons/registry.h | 4 +- src/xencons/ring.c | 4 +- src/xencons/ring.h | 4 +- src/xencons/stream.c | 4 +- src/xencons/stream.h | 4 +- src/xencons/thread.c | 4 +- src/xencons/thread.h | 4 +- src/xencons/types.h | 4 +- src/xencons/util.h | 4 +- src/xencons/xencons.rc | 6 ++- vs2015/xencons_coinst/xencons_coinst.vcxproj | 3 ++ vs2017/xencons_coinst/xencons_coinst.vcxproj | 3 ++ vs2019/xencons_coinst/xencons_coinst.vcxproj | 3 ++ vs2022/xencons_coinst/xencons_coinst.vcxproj | 3 ++ 55 files changed, 219 insertions(+), 50 deletions(-) create mode 100644 src/coinst/xencons_coinst.rc -- 2.39.0.windows.1
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |