]> xenbits.xensource.com Git - pvdrivers/win/xeniface.git/commitdiff
Scripted replacement of Copyright notices in source
authorOwen Smith <owen.smith@citrix.com>
Thu, 23 Feb 2023 09:49:54 +0000 (09:49 +0000)
committerPaul Durrant <pdurrant@amazon.com>
Thu, 23 Mar 2023 17:03:51 +0000 (17:03 +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>
40 files changed:
LICENSE
include/cache_interface.h
include/evtchn_interface.h
include/gnttab_interface.h
include/shared_info_interface.h
include/store_interface.h
include/suspend_interface.h
include/xeniface_ioctls.h
src/coinst/coinst.c
src/coinst/xeniface_coinst.def
src/coinst/xeniface_coinst.rc
src/xenagent/convdevice.h
src/xenagent/devicelist.h
src/xenagent/messages.mc
src/xenagent/service.h
src/xenagent/xenagent.rc
src/xenagent/xenifacedevice.h
src/xeniface.inf
src/xeniface/assert.h
src/xeniface/driver.c
src/xeniface/driver.h
src/xeniface/fdo.c
src/xeniface/fdo.h
src/xeniface/ioctl_sharedinfo.c
src/xeniface/ioctl_store.c
src/xeniface/ioctl_suspend.c
src/xeniface/ioctls.c
src/xeniface/ioctls.h
src/xeniface/log.h
src/xeniface/mutex.h
src/xeniface/names.h
src/xeniface/registry.c
src/xeniface/registry.h
src/xeniface/thread.c
src/xeniface/thread.h
src/xeniface/types.h
src/xeniface/util.h
src/xeniface/wmi.c
src/xeniface/wmi.h
src/xeniface/xeniface.rc

diff --git a/LICENSE b/LICENSE
index 00be66607d13ddbf1b4ae00eee762b98c60bacdb..c445255ced3c2a904684093146af602b51109c54 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 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 27910b020a8e70946734ac35eca6958e47445a0d..7aaf4f5a04c3df915e706bb0733bf7aa716bd2b9 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 e1251dd1369f7ca20f7acb5e5ec9ed347cce363c..e6b9bce038605d0e8488457e1aead162031046a8 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 cbe11ab6d9e4f4ad21ac54f0edbc6483728a577c..8d6f40fdaf782a022fe474824ca28584c7755d23 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 5d09971497ca252c1dab9367e27783ae0bac0e5d..1a8bcb583e1f8b59725a53d52ea92130d1f19e56 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * Copyright (c) Rafal Wojdyla <omeg@invisiblethingslab.com>
  * All rights reserved.
  *
index a4c883aed7193aef60f15ccba71e4435192bdb8f..8cd3523ae3c107b4743eb6ae003dbdb7e89058de 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 8fbfb02832d3f66f0ab5000ddd9a6f450e85ae66..d43b5f7e2b79c51dd9de1e5d4621b6a2ebee8a37 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,
@@ -54,4 +55,4 @@
 #define VER_FILETYPE VFT_APP
 #define VER_FILESUBTYPE 0
 
-#include "common.ver"
\ No newline at end of file
+#include "common.ver"
index 088ff15a69501d0b8eed8d9e9fb2e387d78bb902..6f8093174a5e7dec3da3c65b205b6fa692467d51 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 3e260f820223782af106d7e45d96f33531cfe90e..8e7b6a0260618b6216c34a4ea6bca62bd4631b26 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 56f0e5d8056490d4c6600d62ff54f84caf6f10e7..8e65f5a59c924eb899a6b3f27770c0a6d8af216b 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 32a6b8d1edbcbe6ad398b0803eb23bcb78856c18..1e82ef02473c11f9569e5b7da391f63251cdf418 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 ea40aece5298a16d84f2d5d1294c73f7d348161b..0696a336cc31eab44d43d26257cde49fe2c5cb94 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,
@@ -55,4 +56,4 @@
 #define VER_FILESUBTYPE 0
 
 #include "common.ver"
-#include "messages.rc"
\ No newline at end of file
+#include "messages.rc"
index 3b5e4737cd1098b5a31a499392ae5f25915404ac..d85e4696e15d6e31828c73712090a3cbd6eb55c4 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 8968d6ebc9f9ecd7061bbbb48743cc3a0e660d7f..0abde2380471e8ea48c99de90dbf031366839ad1 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 cac74c29b24436b041895f331ff4badb75dd391a..d4d977bcd45fb2b2606f2adccc9ad6bad6a049f7 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 14c493109098daf20f339c192a5d57d88589dd99..6c3032b496616c047f64d279a42a04a12c02b233 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 f3c86e883dfa74809504d599257b55c4b4169589..4fb6308d2954dd851ac6bf0762c83d2abf03d401 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 6aabf96633fdb7c0db41e03c6962292cf46d0d8e..b07eb4d14392fa40bb0a93c7cdaefc2bd2055137 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 1fedc095a0d481f14b87b1ba615827f32bc396fd..b7b86d7143f8a63ea2810405412e028a01393d27 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 7870732680c198143f1fb6c8cf934da347081701..49203d300e96f625a04bcba278c7d441efa69ca2 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 97062df4d2502153b6e7402a1dcc7b5c71c3f19c..13527738dbb69af3e01d5291343874ab86a33750 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * Copyright (c) Rafal Wojdyla <omeg@invisiblethingslab.com>
  * All rights reserved.
  *
index 6289a94222702c9b1b39d49f33dd32a7f130cba9..daa6dfbac4ac559bffb1452476c78d481e74929c 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 a624bd1dc8f17fe11373f80dd7329b5f0396aa28..044c2f9567b6c0f29a52b9a5f3c829e70e4a55c9 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * Copyright (c) Rafal Wojdyla <omeg@invisiblethingslab.com>
  * All rights reserved.
  *
index c954e9e0feaa3912296277d3f80bb4d0f7d642d3..04378255baee642b17a18d8a6b41a41c09f7ab57 100644 (file)
@@ -1,4 +1,5 @@
-/* Copyright (c) Citrix Systems Inc.
+/* Copyright (c) Xen Project.
+ * Copyright (c) Cloud Software Group, Inc.
  * Copyright (c) Rafal Wojdyla <omeg@invisiblethingslab.com>
  * All rights reserved.
  *
index 724bc3ac8e40da96d1742ffd358ca29fe7926261..85eb63bee22e9fa5705937cd0fc1009d76cb27db 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 f436f1349186ce4b1a4e0e5e9bcf6364b07fca60..a02513764a3127c594f172c52cf0dc1246364214 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 9d282f7ae6bbc8849ce015f1a5daafc9bd08f7b3..d56f242cf586ab7879fd129a5cc464c2dd5f2216 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 9f5628cd559ea929edf2ae1d3d54104de3bf9b6f..8f848184344af65fc71fc17d8e10e3616c0f1fa4 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 92aa7b67942fc5e6ec9f9956ad067c1e4dcd1753..1cf86712c6f9a3169afe79dda6be4c61e4dcd36b 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 4d767a04f5995972b1a41424d2c984d185f8266d..3816d23bf15d9984520dcabe1cebb7a3e08acab5 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 929f34e1b859e0b7806adce941b196b06234b986..8a18fbca889caf98e463c77e1d15650e719c76c1 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 2339143c6a1ea933eac122abb9a4728188921f8f..3df1f0daaa7429cfd91e634bdb07d8cb2001a4dc 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 ef00a5513667c140294a69fe6c38444017532f87..71c887dbf6734348b3be1573aa7bf0771329acbc 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 0d21b92c19bca956e6c5289fad5be450974bbbf6..5bbf1234fd877e36d831197710b63a973b4ac28a 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 2656b46716a2496c1e05f409553a4de689672914..dca2e84a399ab608fbe355a0e1e2e38bdc5a3ca8 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 c113fac8495bd601c4ef9cb2b30b6e47b499ce72..b0e0600ccf3662bcac1ce8cb042d6921e08c148b 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,