[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 0/3][XenIface] Change Copyright statement
- To: win-pv-devel@xxxxxxxxxxxxxxxxxxxx
- From: Paul Durrant <xadimgnik@xxxxxxxxx>
- Date: Wed, 8 Mar 2023 13:19:15 +0000
- Delivery-date: Wed, 08 Mar 2023 13:19:18 +0000
- List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>
On 23/02/2023 09:49, 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):
[XenIface] Allow rebranding file copyright string
[XenIface] Add resource file to coinstaller
[XenIface] Scripted replacement of Copyright notices in source
LICENSE | 4 +-
build.ps1 | 4 ++
include/cache_interface.h | 4 +-
include/evtchn_interface.h | 4 +-
include/gnttab_interface.h | 4 +-
include/shared_info_interface.h | 4 +-
include/store_interface.h | 4 +-
include/suspend_interface.h | 4 +-
include/version.tmpl | 1 +
include/xeniface_ioctls.h | 4 +-
scripts/genfiles.ps1 | 1 +
src/coinst/coinst.c | 4 +-
src/coinst/xeniface_coinst.def | 4 +-
src/coinst/xeniface_coinst.rc | 59 +++++++++++++++++++
src/xenagent/convdevice.h | 4 +-
src/xenagent/devicelist.h | 4 +-
src/xenagent/messages.mc | 4 +-
src/xenagent/service.h | 4 +-
src/xenagent/xenagent.rc | 8 ++-
src/xenagent/xenifacedevice.h | 4 +-
src/xeniface.inf | 4 +-
src/xeniface/assert.h | 4 +-
src/xeniface/driver.c | 4 +-
src/xeniface/driver.h | 4 +-
src/xeniface/fdo.c | 4 +-
src/xeniface/fdo.h | 4 +-
src/xeniface/ioctl_sharedinfo.c | 4 +-
src/xeniface/ioctl_store.c | 4 +-
src/xeniface/ioctl_suspend.c | 4 +-
src/xeniface/ioctls.c | 4 +-
src/xeniface/ioctls.h | 4 +-
src/xeniface/log.h | 4 +-
src/xeniface/mutex.h | 4 +-
src/xeniface/names.h | 4 +-
src/xeniface/registry.c | 4 +-
src/xeniface/registry.h | 4 +-
src/xeniface/thread.c | 4 +-
src/xeniface/thread.h | 4 +-
src/xeniface/types.h | 4 +-
src/xeniface/util.h | 4 +-
src/xeniface/wmi.c | 4 +-
src/xeniface/wmi.h | 4 +-
src/xeniface/xeniface.rc | 6 +-
.../xeniface_coinst/xeniface_coinst.vcxproj | 3 +
.../xeniface_coinst/xeniface_coinst.vcxproj | 3 +
.../xeniface_coinst/xeniface_coinst.vcxproj | 3 +
.../xeniface_coinst/xeniface_coinst.vcxproj | 3 +
47 files changed, 197 insertions(+), 42 deletions(-)
create mode 100644 src/coinst/xeniface_coinst.rc
Series...
Acked-by: Paul Durrant <paul@xxxxxxx>
|