]> xenbits.xensource.com Git - pvdrivers/win/xencons.git/commitdiff
Scripted replacement of Copyright notices in source
authorOwen Smith <owen.smith@citrix.com>
Thu, 23 Feb 2023 09:47:26 +0000 (09:47 +0000)
committerPaul Durrant <pdurrant@amazon.com>
Thu, 23 Mar 2023 16:11:57 +0000 (16:11 +0000)
Due to a transfer of copyright ownership from Citrix to Cloud Software Group,
the copyright notices in all source files should be updated.

Using the powershell script below replace "Copyright (c) Citrix Systems, Inc."
with "Copyright (c) Xen Project." and "Copyright (c) Cloud Software Group, Inc."

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

Signed-off-by: Owen Smith <owen.smith@citrix.com>
Amended commit comment. Fixed whitespace.

Signed-off-by: Paul Durrant <paul@xen.org>
48 files changed:
LICENSE
include/cache_interface.h
include/console_interface.h
include/debug_interface.h
include/evtchn_interface.h
include/gnttab_interface.h
include/store_interface.h
include/suspend_interface.h
include/xen-types.h
include/xen-version.h
include/xen-warnings.h
include/xen.h
include/xencons_device.h
src/coinst/coinst.c
src/coinst/xencons_coinst.def
src/coinst/xencons_coinst.rc
src/monitor/messages.mc
src/monitor/monitor.c
src/monitor/xencons_monitor.rc
src/tty/tty.c
src/tty/xencons_tty.rc
src/xencons.inf
src/xencons/assert.h
src/xencons/console.c
src/xencons/console.h
src/xencons/console_abi.h
src/xencons/dbg_print.h
src/xencons/driver.c
src/xencons/driver.h
src/xencons/fdo.c
src/xencons/fdo.h
src/xencons/frontend.c
src/xencons/frontend.h
src/xencons/mutex.h
src/xencons/names.h
src/xencons/pdo.c
src/xencons/pdo.h
src/xencons/registry.c
src/xencons/registry.h
src/xencons/ring.c
src/xencons/ring.h
src/xencons/stream.c
src/xencons/stream.h
src/xencons/thread.c
src/xencons/thread.h
src/xencons/types.h
src/xencons/util.h
src/xencons/xencons.rc

diff --git a/LICENSE b/LICENSE
index df521f16e2f8c1ec9244c6666649c6140c0aa03e..b35096e731b9dfb6439d8ab5f9a10507a4668472 100644 (file)
--- a/LICENSE
+++ b/LICENSE
@@ -1,4 +1,5 @@
-Copyright (c) Citrix Systems Inc.
+Copyright (c) Xen Project.
+Copyright (c) Cloud Software Group, Inc.
 All rights reserved.
 
 Redistribution and use in source and binary forms,
index 048e06b3f1c5a44b1d825a7d47610be1260eca4a..c45777cb72d37e5b678dec7fb41f43855b759110 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms,
index 7c10cef353049802cab147c4bb0b5ace692ce940..6b4ba7a0c12e1d186d1a75bac95fd59abd1a6117 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms,
index a5e02bfeb930010f829c244c7abde18565d95349..2d82c807f71a868a54fd5fbeb96bbde1c2633502 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms,
index dbe874511866164715ca44ac9675a37c76e944bd..cfc8d2b98296a5927e18c42079e1d84e3483e591 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms,
index 865c4f30244432e09e066b4f80da20146ab9cda3..87303e241c52fe9ebdc9a67b91c78a773ef71736 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms,
index 83fed17afffcd7cc34059dceea21b7e61fa57441..616bc366869d8ad045c46c02601171a3802e2635 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms,
index 9ef386b9dc1bb485d220bcbfa383d49f927e9001..ee31d95a3462275d6a9f96cd6e8ed7d5b4345f94 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms,
index 82cb69ea9a51f3c98fa5c9f1b542f265bbad2533..6eb869311afce6831aff45df8d48ba2bfa883ce3 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms,
index 4da807a2940781426c4b1331e280dfc16aa174c7..224ca8873dc85f5bcc59ba84fb1ae06c1e74aeda 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms,
index 90ae6ae5477076a623b2a5ed6389c7d68fab1084..30c0f7da8337d0c3e01ba6bba4adc58abceefa65 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms,
index edfe24a3fde9f602804c85d30930465d47730723..3e4adc923c6cbf111e3749abdd63bc13adcfd451 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms,
index c9ae2efbbf8563fb22181a507adc8d505c294f72..e144389eec2fbfb7e5057f7d4aed13b4a6df078c 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms,
index 4d2953dc5d03fc14deaf93c92f1d816a6baadf69..a7c71895a6cf51ee936a4d891ecb2f4b09e88f79 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms,
index 69fee2e4d61e976ee7f8e84596cc1209d7b9c5a2..aab18c5826665fcd3d2b72d03cfe7d8ec7aa8c28 100644 (file)
@@ -1,4 +1,5 @@
-; Copyright (c) Citrix Systems Inc.
+; Copyright (c) Xen Project.
+; Copyright (c) Cloud Software Group, Inc.
 ; All rights reserved.
 ;
 ; Redistribution and use in source and binary forms,
index 95e69020add8e443f1beebfee807b4a6424984d0..4b4cc63679d29857cff09d413ba7e2d913f7709a 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms,
index 9fff13512248a1ca08b59935ec9f6a1d9995156f..eb1d382d660cd02fb49a9b255ce31e6201c0190d 100644 (file)
@@ -1,4 +1,5 @@
-; // Copyright (c) Citrix Systems Inc.
+; // Copyright (c) Xen Project.
+; // Copyright (c) Cloud Software Group, Inc.
 ; // All rights reserved.
 ; //
 ; // Redistribution and use in source and binary forms,
index 191204755721123b4797671739e1e1d0e9cfe818..59e6ab6aee78eca4ee5321a4893c754cceff9ffb 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source 1and binary forms,
index 9384af678487a888756e922ea284d38c36da2f91..3fba041ed1dfc9a86c701cca95b782399e0765da 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms,
index c3dfcf95faf9eacaece82663cbb0d30622adf792..c3b6f8e18345ed867eeea97c16fb56e9d0922681 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms,
index fc805062e36a07e9037f1f1295468e43adcb77aa..22cef75958daf506cc17d297f9bf5414c21b8e5b 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms,
index 5eab17f53401a1c2114666c263b4a86a5033c9c6..5f3be798d5471410a7e3d266d73deba4cdde3de9 100644 (file)
@@ -1,4 +1,5 @@
-; Copyright (c) Citrix Systems Inc.
+; Copyright (c) Xen Project.
+; Copyright (c) Cloud Software Group, Inc.
 ; All rights reserved.
 ;
 ; Redistribution and use in source and binary forms,
index c98f5f797c2085575b22aae94ea8d76007af2020..e5345cf373c6a692ea93a8e2d49db2db0fd3d5a0 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms,
index 2e044ae38abe3f5c4abea8fb221c759058beb43f..939d8c850e82c3d9b19fc8298a1424e44db06276 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms,
index cd003030a19eb8136ba067a32a08cc674947d737..50c40d3a1ec8536c9bc3259ce5ce28f034a13177 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms,
index 0b2057d02c9e580510a34a22a3f44a295160899c..68da268d7d826c416023e80731be080f0aba6996 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms,
index 61fb7e6986c7da81f27ef17a0409f008791b1d16..11063fe8f1b34baa34f8f3f5bbfdeac4b68011dc 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms,
index 56e27750525906c83b68f0391de227ef5d068a19..76a04f98971bf4b135afa3150fdde6628dcbd13f 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms,
index fb5ece0ee630eec47df76aadd32101b7955006f8..2ee4e0c90caa5a278a64e6aa667ef0bb7249fba2 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms,
index 99042494fd1b707f71afddf46bc6d26618ab8ce0..4aa99e4dc3628bb641b02944e2164c56c8fe02e2 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms,
index 7fe07de514fb1986e5fb884439a46b6f68a038b1..916c168ea0578e221a828f6fad95fb1ac98909cb 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms,
index 6965092b5ae928aadec0a33c19d87fbd19b06804..8c578245b3c4226efc11ce9e7d0df28151139473 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms,
index 93525a752240e60e4b8647e00c234c04dffe948a..88d89b7cd00ea07cf9e8b33092add7193b474dca 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms,
index 904b21dcd7c305b64aadaf38fd1fa8c450c26535..ee1915ec6f41c30def5f157c7241e00b01d103c5 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms,
index 1c0656304239462772c0bb8892be4150b67af26d..1100a7a67631ec4313f216211ab9c5c982a561f9 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms,
index d7db389d82ca3f1d973250b6f97b648a7adcf22b..982fe9de0ce2e954bef396692ae950eb108fb92f 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms,
index 85f73a3e730d6f520ef0c40161e527d2c0accc40..c53f361f2db61de176c2a47602b33ff26c34069b 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms,
index 0bf8c0d3b7079082c30846c25a6308906ae272d3..3e0f3b090421de7f81438df09e9eaee73a5b66bb 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms,
index 53d632a7caa47fc4a175497e60794d76fdc379ab..05bec8578f6f23486bd42336baa8bf6fa7eadc2f 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms,
index c4f01225c8bd5583ea57153fa1ce9fcea73792fc..29e172f62f95868f4dba0a4d90e19bb7ba9ce001 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms,
index aca32a2e8f80753daf3d81284c5f97869eedea59..ffd4f21a22eba35bb1ef843044618626a51c9ef0 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms,
index 4e46caa8703891b2203f7eb9517817c4c984783f..6aa9226eb1cd1c97039f8e3f505b7f3406302a98 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms,
index 5fa85ce2757a58fbedcde30461b60696b21f6622..7da964120655823b6d40917c408c9e7dd0cdf2f9 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms,
index 8b4350ee5a32a9dff202b0e13807ea841b1a0e2f..2d81009a7cbf8d91e258e4922dac14dea746daa6 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms,
index 5d336b1b8fddafc8923be5160618352c808e3dea..9adca6893b43573a133683216066941accea25c0 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms,
index fa4bcd939f96555e2aa984a3456322981d247ea7..6aa97333168310e6579bbcfd40c21360dc498c6c 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms,
index 7bc089e392aa614015d59b28805588790cf1dc8b..db520836d1aa70e97136a9d8d1b33dfdde8b8d7f 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms,
index 06b215daed9c9321f218622252ab17211c4e1854..e47ad62581f9411297b224dc384ccf84011993d0 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms,