From: Owen Smith Date: Thu, 23 Feb 2023 09:50:43 +0000 (+0000) Subject: Scripted replacement of Copyright notices in source X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=813f166e94d80fe26d46efe11e2481c718be2078;p=pvdrivers%2Fwin%2Fxennet.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 00be666..c445255 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/ethernet.h b/include/ethernet.h index 9eb4b74..05f631f 100644 --- a/include/ethernet.h +++ b/include/ethernet.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 e1251dd..e6b9bce 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 cbe11ab..8d6f40f 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/tcpip.h b/include/tcpip.h index 7d1dade..4869c85 100644 --- a/include/tcpip.h +++ b/include/tcpip.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/vif_interface.h b/include/vif_interface.h index a600d35..a63abba 100644 --- a/include/vif_interface.h +++ b/include/vif_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 27c115c..2cee266 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/src/coinst/coinst.c b/src/coinst/coinst.c index 89547cc..f25c0f5 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/xennet_coinst.def b/src/coinst/xennet_coinst.def index bcdd28b..3a3f0fb 100644 --- a/src/coinst/xennet_coinst.def +++ b/src/coinst/xennet_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/xennet_coinst.rc b/src/coinst/xennet_coinst.rc index c7170e9..e4635d4 100644 --- a/src/coinst/xennet_coinst.rc +++ b/src/coinst/xennet_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/xennet.inf b/src/xennet.inf index 43c5573..27cb2e2 100644 --- a/src/xennet.inf +++ b/src/xennet.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/xennet/adapter.c b/src/xennet/adapter.c index 4b449f3..67ced3e 100644 --- a/src/xennet/adapter.c +++ b/src/xennet/adapter.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/xennet/adapter.h b/src/xennet/adapter.h index db71287..2ea0345 100644 --- a/src/xennet/adapter.h +++ b/src/xennet/adapter.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/xennet/assert.h b/src/xennet/assert.h index f090461..53c8061 100644 --- a/src/xennet/assert.h +++ b/src/xennet/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/xennet/dbg_print.h b/src/xennet/dbg_print.h index 3f33319..ff24dc8 100644 --- a/src/xennet/dbg_print.h +++ b/src/xennet/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/xennet/driver.c b/src/xennet/driver.c index 8127621..96adde7 100644 --- a/src/xennet/driver.c +++ b/src/xennet/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/xennet/driver.h b/src/xennet/driver.h index 2c5bb58..1c167c6 100644 --- a/src/xennet/driver.h +++ b/src/xennet/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/xennet/miniport.c b/src/xennet/miniport.c index f714909..5dc9858 100644 --- a/src/xennet/miniport.c +++ b/src/xennet/miniport.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/xennet/miniport.h b/src/xennet/miniport.h index 15d4455..16e9395 100644 --- a/src/xennet/miniport.h +++ b/src/xennet/miniport.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/xennet/receiver.c b/src/xennet/receiver.c index ae9207c..b4cf4f0 100644 --- a/src/xennet/receiver.c +++ b/src/xennet/receiver.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/xennet/receiver.h b/src/xennet/receiver.h index 5a1e82e..d8b8c84 100644 --- a/src/xennet/receiver.h +++ b/src/xennet/receiver.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/xennet/string.c b/src/xennet/string.c index 7d2f1e3..e0e22a7 100644 --- a/src/xennet/string.c +++ b/src/xennet/string.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/xennet/string.h b/src/xennet/string.h index cc3b8d5..03a96ce 100644 --- a/src/xennet/string.h +++ b/src/xennet/string.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/xennet/transmitter.c b/src/xennet/transmitter.c index bd178b3..5507a1a 100644 --- a/src/xennet/transmitter.c +++ b/src/xennet/transmitter.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/xennet/transmitter.h b/src/xennet/transmitter.h index 585c5ac..97d2f74 100644 --- a/src/xennet/transmitter.h +++ b/src/xennet/transmitter.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/xennet/util.h b/src/xennet/util.h index 2dede97..bd980b1 100644 --- a/src/xennet/util.h +++ b/src/xennet/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/xennet/xennet.rc b/src/xennet/xennet.rc index 62c3cf7..48b24ae 100644 --- a/src/xennet/xennet.rc +++ b/src/xennet/xennet.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,