[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH 0/3][XenBus] Change Copyright statement
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): Allow rebranding file copyright string Add resource file to coinstaller Scripted replacement of Copyright notices in source LICENSE | 4 +- build.ps1 | 4 ++ include/balloon_interface.h | 4 +- include/cache_interface.h | 4 +- include/console_interface.h | 4 +- include/debug_interface.h | 4 +- include/emulated_interface.h | 4 +- include/evtchn_interface.h | 4 +- include/gnttab_interface.h | 4 +- include/range_set_interface.h | 4 +- include/revision.h | 4 +- include/shared_info_interface.h | 4 +- include/store_interface.h | 4 +- include/suspend_interface.h | 4 +- include/unplug_interface.h | 4 +- include/version.tmpl | 1 + include/xen-errno.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/xenbus_coinst.def | 4 +- src/coinst/xenbus_coinst.rc | 58 ++++++++++++++++++++++ src/common/assert.h | 4 +- src/common/dbg_print.h | 4 +- src/common/high.h | 4 +- src/common/mutex.h | 4 +- src/common/names.h | 4 +- src/common/registry.c | 4 +- src/common/registry.h | 4 +- src/common/util.h | 4 +- src/monitor/messages.mc | 4 +- src/monitor/monitor.c | 4 +- src/monitor/xenbus_monitor.rc | 6 ++- src/xen/acpi.c | 4 +- src/xen/acpi.h | 4 +- src/xen/bug_check.c | 4 +- src/xen/bug_check.h | 4 +- src/xen/driver.c | 4 +- src/xen/driver.h | 4 +- src/xen/event_channel.c | 4 +- src/xen/grant_table.c | 4 +- src/xen/hvm.c | 4 +- src/xen/hypercall.c | 4 +- src/xen/hypercall.h | 4 +- src/xen/log.c | 4 +- src/xen/log.h | 4 +- src/xen/memory.c | 4 +- src/xen/module.c | 4 +- src/xen/module.h | 4 +- src/xen/process.c | 4 +- src/xen/process.h | 4 +- src/xen/sched.c | 4 +- src/xen/system.c | 4 +- src/xen/system.h | 4 +- src/xen/unplug.c | 4 +- src/xen/unplug.h | 4 +- src/xen/xen.def | 4 +- src/xen/xen.rc | 6 ++- src/xen/xen_version.c | 4 +- src/xenbus.inf | 4 +- src/xenbus/balloon.c | 4 +- src/xenbus/balloon.h | 4 +- src/xenbus/bus.c | 4 +- src/xenbus/bus.h | 4 +- src/xenbus/cache.c | 4 +- src/xenbus/cache.h | 4 +- src/xenbus/console.c | 4 +- src/xenbus/console.h | 4 +- src/xenbus/debug.c | 4 +- src/xenbus/debug.h | 4 +- src/xenbus/dma.c | 4 +- src/xenbus/dma.h | 4 +- src/xenbus/driver.c | 4 +- src/xenbus/driver.h | 4 +- src/xenbus/evtchn.c | 4 +- src/xenbus/evtchn.h | 4 +- src/xenbus/evtchn_2l.c | 4 +- src/xenbus/evtchn_2l.h | 4 +- src/xenbus/evtchn_abi.h | 4 +- src/xenbus/evtchn_fifo.c | 4 +- src/xenbus/evtchn_fifo.h | 4 +- src/xenbus/fdo.c | 4 +- src/xenbus/fdo.h | 4 +- src/xenbus/filters.c | 4 +- src/xenbus/filters.h | 4 +- src/xenbus/gnttab.c | 4 +- src/xenbus/gnttab.h | 4 +- src/xenbus/hash_table.c | 4 +- src/xenbus/hash_table.h | 4 +- src/xenbus/pdo.c | 4 +- src/xenbus/pdo.h | 4 +- src/xenbus/range_set.c | 4 +- src/xenbus/range_set.h | 4 +- src/xenbus/shared_info.c | 4 +- src/xenbus/shared_info.h | 4 +- src/xenbus/store.c | 4 +- src/xenbus/store.h | 4 +- src/xenbus/suspend.c | 4 +- src/xenbus/suspend.h | 4 +- src/xenbus/sync.c | 4 +- src/xenbus/sync.h | 4 +- src/xenbus/thread.c | 4 +- src/xenbus/thread.h | 4 +- src/xenbus/types.h | 4 +- src/xenbus/unplug.c | 4 +- src/xenbus/unplug.h | 4 +- src/xenbus/xenbus.rc | 6 ++- src/xenfilt/driver.c | 4 +- src/xenfilt/driver.h | 4 +- src/xenfilt/emulated.c | 4 +- src/xenfilt/emulated.h | 4 +- src/xenfilt/fdo.c | 4 +- src/xenfilt/fdo.h | 4 +- src/xenfilt/pdo.c | 4 +- src/xenfilt/pdo.h | 4 +- src/xenfilt/thread.c | 4 +- src/xenfilt/thread.h | 4 +- src/xenfilt/types.h | 4 +- src/xenfilt/xenfilt.rc | 6 ++- vs2015/xenbus_coinst/xenbus_coinst.vcxproj | 3 ++ vs2017/xenbus_coinst/xenbus_coinst.vcxproj | 3 ++ vs2019/xenbus_coinst/xenbus_coinst.vcxproj | 3 ++ vs2022/xenbus_coinst/xenbus_coinst.vcxproj | 3 ++ 126 files changed, 434 insertions(+), 122 deletions(-) create mode 100644 src/coinst/xenbus_coinst.rc -- 2.39.0.windows.1
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |