From: Owen Smith Date: Thu, 23 Feb 2023 09:47:26 +0000 (+0000) Subject: Scripted replacement of Copyright notices in source X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=2bef7c630f20a2d3351cdb4b12f2cb021ec347d3;p=pvdrivers%2Fwin%2Fxencons.git Scripted replacement of Copyright notices in source 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 Amended commit comment. Fixed whitespace. Signed-off-by: Paul Durrant --- diff --git a/LICENSE b/LICENSE index df521f1..b35096e 100644 --- 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, diff --git a/include/cache_interface.h b/include/cache_interface.h index 048e06b..c45777c 100644 --- a/include/cache_interface.h +++ b/include/cache_interface.h @@ -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, diff --git a/include/console_interface.h b/include/console_interface.h index 7c10cef..6b4ba7a 100644 --- a/include/console_interface.h +++ b/include/console_interface.h @@ -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, diff --git a/include/debug_interface.h b/include/debug_interface.h index a5e02bf..2d82c80 100644 --- a/include/debug_interface.h +++ b/include/debug_interface.h @@ -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, diff --git a/include/evtchn_interface.h b/include/evtchn_interface.h index dbe8745..cfc8d2b 100644 --- a/include/evtchn_interface.h +++ b/include/evtchn_interface.h @@ -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, diff --git a/include/gnttab_interface.h b/include/gnttab_interface.h index 865c4f3..87303e2 100644 --- a/include/gnttab_interface.h +++ b/include/gnttab_interface.h @@ -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, diff --git a/include/store_interface.h b/include/store_interface.h index 83fed17..616bc36 100644 --- a/include/store_interface.h +++ b/include/store_interface.h @@ -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, diff --git a/include/suspend_interface.h b/include/suspend_interface.h index 9ef386b..ee31d95 100644 --- a/include/suspend_interface.h +++ b/include/suspend_interface.h @@ -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, diff --git a/include/xen-types.h b/include/xen-types.h index 82cb69e..6eb8693 100644 --- a/include/xen-types.h +++ b/include/xen-types.h @@ -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, diff --git a/include/xen-version.h b/include/xen-version.h index 4da807a..224ca88 100644 --- a/include/xen-version.h +++ b/include/xen-version.h @@ -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, diff --git a/include/xen-warnings.h b/include/xen-warnings.h index 90ae6ae..30c0f7d 100644 --- a/include/xen-warnings.h +++ b/include/xen-warnings.h @@ -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, diff --git a/include/xen.h b/include/xen.h index edfe24a..3e4adc9 100644 --- a/include/xen.h +++ b/include/xen.h @@ -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, diff --git a/include/xencons_device.h b/include/xencons_device.h index c9ae2ef..e144389 100644 --- a/include/xencons_device.h +++ b/include/xencons_device.h @@ -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, diff --git a/src/coinst/coinst.c b/src/coinst/coinst.c index 4d2953d..a7c7189 100644 --- a/src/coinst/coinst.c +++ b/src/coinst/coinst.c @@ -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, diff --git a/src/coinst/xencons_coinst.def b/src/coinst/xencons_coinst.def index 69fee2e..aab18c5 100644 --- a/src/coinst/xencons_coinst.def +++ b/src/coinst/xencons_coinst.def @@ -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, diff --git a/src/coinst/xencons_coinst.rc b/src/coinst/xencons_coinst.rc index 95e6902..4b4cc63 100644 --- a/src/coinst/xencons_coinst.rc +++ b/src/coinst/xencons_coinst.rc @@ -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, diff --git a/src/monitor/messages.mc b/src/monitor/messages.mc index 9fff135..eb1d382 100644 --- a/src/monitor/messages.mc +++ b/src/monitor/messages.mc @@ -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, diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c index 1912047..59e6ab6 100644 --- a/src/monitor/monitor.c +++ b/src/monitor/monitor.c @@ -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, diff --git a/src/monitor/xencons_monitor.rc b/src/monitor/xencons_monitor.rc index 9384af6..3fba041 100644 --- a/src/monitor/xencons_monitor.rc +++ b/src/monitor/xencons_monitor.rc @@ -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, diff --git a/src/tty/tty.c b/src/tty/tty.c index c3dfcf9..c3b6f8e 100644 --- a/src/tty/tty.c +++ b/src/tty/tty.c @@ -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, diff --git a/src/tty/xencons_tty.rc b/src/tty/xencons_tty.rc index fc80506..22cef75 100644 --- a/src/tty/xencons_tty.rc +++ b/src/tty/xencons_tty.rc @@ -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, diff --git a/src/xencons.inf b/src/xencons.inf index 5eab17f..5f3be79 100644 --- a/src/xencons.inf +++ b/src/xencons.inf @@ -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, diff --git a/src/xencons/assert.h b/src/xencons/assert.h index c98f5f7..e5345cf 100644 --- a/src/xencons/assert.h +++ b/src/xencons/assert.h @@ -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, diff --git a/src/xencons/console.c b/src/xencons/console.c index 2e044ae..939d8c8 100644 --- a/src/xencons/console.c +++ b/src/xencons/console.c @@ -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, diff --git a/src/xencons/console.h b/src/xencons/console.h index cd00303..50c40d3 100644 --- a/src/xencons/console.h +++ b/src/xencons/console.h @@ -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, diff --git a/src/xencons/console_abi.h b/src/xencons/console_abi.h index 0b2057d..68da268 100644 --- a/src/xencons/console_abi.h +++ b/src/xencons/console_abi.h @@ -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, diff --git a/src/xencons/dbg_print.h b/src/xencons/dbg_print.h index 61fb7e6..11063fe 100644 --- a/src/xencons/dbg_print.h +++ b/src/xencons/dbg_print.h @@ -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, diff --git a/src/xencons/driver.c b/src/xencons/driver.c index 56e2775..76a04f9 100644 --- a/src/xencons/driver.c +++ b/src/xencons/driver.c @@ -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, diff --git a/src/xencons/driver.h b/src/xencons/driver.h index fb5ece0..2ee4e0c 100644 --- a/src/xencons/driver.h +++ b/src/xencons/driver.h @@ -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, diff --git a/src/xencons/fdo.c b/src/xencons/fdo.c index 9904249..4aa99e4 100644 --- a/src/xencons/fdo.c +++ b/src/xencons/fdo.c @@ -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, diff --git a/src/xencons/fdo.h b/src/xencons/fdo.h index 7fe07de..916c168 100644 --- a/src/xencons/fdo.h +++ b/src/xencons/fdo.h @@ -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, diff --git a/src/xencons/frontend.c b/src/xencons/frontend.c index 6965092..8c57824 100644 --- a/src/xencons/frontend.c +++ b/src/xencons/frontend.c @@ -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, diff --git a/src/xencons/frontend.h b/src/xencons/frontend.h index 93525a7..88d89b7 100644 --- a/src/xencons/frontend.h +++ b/src/xencons/frontend.h @@ -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, diff --git a/src/xencons/mutex.h b/src/xencons/mutex.h index 904b21d..ee1915e 100644 --- a/src/xencons/mutex.h +++ b/src/xencons/mutex.h @@ -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, diff --git a/src/xencons/names.h b/src/xencons/names.h index 1c06563..1100a7a 100644 --- a/src/xencons/names.h +++ b/src/xencons/names.h @@ -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, diff --git a/src/xencons/pdo.c b/src/xencons/pdo.c index d7db389..982fe9d 100644 --- a/src/xencons/pdo.c +++ b/src/xencons/pdo.c @@ -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, diff --git a/src/xencons/pdo.h b/src/xencons/pdo.h index 85f73a3..c53f361 100644 --- a/src/xencons/pdo.h +++ b/src/xencons/pdo.h @@ -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, diff --git a/src/xencons/registry.c b/src/xencons/registry.c index 0bf8c0d..3e0f3b0 100644 --- a/src/xencons/registry.c +++ b/src/xencons/registry.c @@ -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, diff --git a/src/xencons/registry.h b/src/xencons/registry.h index 53d632a..05bec85 100644 --- a/src/xencons/registry.h +++ b/src/xencons/registry.h @@ -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, diff --git a/src/xencons/ring.c b/src/xencons/ring.c index c4f0122..29e172f 100644 --- a/src/xencons/ring.c +++ b/src/xencons/ring.c @@ -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, diff --git a/src/xencons/ring.h b/src/xencons/ring.h index aca32a2..ffd4f21 100644 --- a/src/xencons/ring.h +++ b/src/xencons/ring.h @@ -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, diff --git a/src/xencons/stream.c b/src/xencons/stream.c index 4e46caa..6aa9226 100644 --- a/src/xencons/stream.c +++ b/src/xencons/stream.c @@ -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, diff --git a/src/xencons/stream.h b/src/xencons/stream.h index 5fa85ce..7da9641 100644 --- a/src/xencons/stream.h +++ b/src/xencons/stream.h @@ -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, diff --git a/src/xencons/thread.c b/src/xencons/thread.c index 8b4350e..2d81009 100644 --- a/src/xencons/thread.c +++ b/src/xencons/thread.c @@ -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, diff --git a/src/xencons/thread.h b/src/xencons/thread.h index 5d336b1..9adca68 100644 --- a/src/xencons/thread.h +++ b/src/xencons/thread.h @@ -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, diff --git a/src/xencons/types.h b/src/xencons/types.h index fa4bcd9..6aa9733 100644 --- a/src/xencons/types.h +++ b/src/xencons/types.h @@ -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, diff --git a/src/xencons/util.h b/src/xencons/util.h index 7bc089e..db52083 100644 --- a/src/xencons/util.h +++ b/src/xencons/util.h @@ -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, diff --git a/src/xencons/xencons.rc b/src/xencons/xencons.rc index 06b215d..e47ad62 100644 --- a/src/xencons/xencons.rc +++ b/src/xencons/xencons.rc @@ -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,