[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 0/3][XenBus] Change Copyright statement


  • To: <win-pv-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Owen Smith <owen.smith@xxxxxxxxxx>
  • Date: Fri, 10 Feb 2023 08:44:35 +0000
  • Authentication-results: esa5.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none
  • Cc: Owen Smith <owen.smith@xxxxxxxxxx>
  • Delivery-date: Fri, 10 Feb 2023 08:45:55 +0000
  • Ironport-data: A9a23:UUFzfqitH7kl3Xm+cleBrSrIX161HRAKZh0ujC45NGQN5FlHY01je htvUGiHaKqNN2SmKowkO4my9k4Fu5PdmIdlTApvqSwxEX4b9cadCdqndUqhZCn6wu8v7q5Ex 55HNoSfdpBcolv0/ErF3m3J9CEkvU2wbuOgTrWCYmYpHlUMpB4J0XpLg/Q+jpNjne+3CgaMv cKai8DEMRqu1iUc3lg8sspvkzsy+qWt0N8klgZmP6sT5gaGzyB94K83fsldEVOpGuG4IcbiL wrz5OnR1n/U+R4rFuSknt7TGqHdauePVeQmoiM+t5mK2nCulARrukoIHKN0hXNsoyeIh7hMJ OBl7vRcf+uL0prkw4zxWzEAe8130DYvFLXveRBTuuTLp6HKnueFL1yDwyjaMKVBktubD12i+ tQWFxApNgiIjtu32ZL4abZopehyCMf0adZ3VnFIlVk1DN4jSJHHBa7L+cVZzHE7gcUm8fT2P pRDL2A1NVKZPkMJYw1MYH49tL7Aan3XdCJVrhSOoKsr40DYzRBr0airO93QEjCPbZQIxR3E+ T+bl4j/Kg4dL9bDzyq3zmmTgcPPpRP+e7M1LoTto5aGh3XMnzdOWXX6T2CTvvi/z1agHt5SN UEQ0i4vtrQpslymSMHnWB+1q2LCuQQTM+e8CMVjtlvLkPCNpV/EWC5dFGUphMEaWNEeSwMK8 geRlNrQBCVP857KTVGxp5OasmbnUcQKFlMqaSgBRAoDxtDspoAvkx7CJupe/L6JYs7dQm+pn W3TxMQqr/BK1JNQif3nlbzSq2j0zqUlWDLZ8ek+soiNygpiLLCoaIWzgbQwxaYRdd3JJrVtU ZVtpiR/0AzsJcvV/MBuaL9XdF1M2xpiGGO0vLKXN8N9nwlBAlb6FWyq3BlwJV1yLuEPciLzb UnYtGt5vcEMYSr0MvMpPtzvUazGKJQM8/y/DZg4ifIXPfBMmPKvpnkyNSZ8IUiy+KTTrU3PE cjCKpv9ZZrrIa9m0CC3V48gPUwDn0gDKZfobcmjlXyPiOPODEN5vJ9ZaDNimMhltvLbyOgUm v4DX/a3J+J3CbWuPXmOodNCfTjn7xETXPjLliCeTcbbSiIOJY3rI6S5LW8JE2C9o5loqw==
  • Ironport-hdrordr: A9a23:+l4ns6hO/4ZuBfllJlcqtV6l13BQXiwji2hC6mlwRA09TyX5ra 2TdTogtSMc6QxhPk3I/OrrBEDuexzhHPJOj7X5eI3SPjUO21HYS72Kj7GSoAEIcheWnoJgPO VbAs1D4bXLZmSS5vyKhDVQfexA/DGGmprY+ts3zR1WPH9Xg3cL1XYJNu6ZeHcGNDWvHfACZe OhDlIsnUvcRZwQBP7LfkUtbqz4iPDgsonpWhICDw5P0njzsdv5gISKaCRxx30lIkly/Ys=
  • List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>

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




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.