From: Owen Smith Date: Thu, 23 Feb 2023 09:49:54 +0000 (+0000) Subject: Scripted replacement of Copyright notices in source X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=f5691a81152bb027a858eba0f2fba9fb6bf318d0;p=pvdrivers%2Fwin%2Fxeniface.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/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/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/shared_info_interface.h b/include/shared_info_interface.h index 27910b0..7aaf4f5 100644 --- a/include/shared_info_interface.h +++ b/include/shared_info_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 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/xeniface_ioctls.h b/include/xeniface_ioctls.h index 5d09971..1a8bcb5 100644 --- a/include/xeniface_ioctls.h +++ b/include/xeniface_ioctls.h @@ -1,4 +1,5 @@ -/* Copyright (c) Citrix Systems Inc. +/* Copyright (c) Xen Project. + * Copyright (c) Cloud Software Group, Inc. * Copyright (c) Rafal Wojdyla * All rights reserved. * diff --git a/src/coinst/coinst.c b/src/coinst/coinst.c index a4c883a..8cd3523 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/xeniface_coinst.def b/src/coinst/xeniface_coinst.def index 69fee2e..aab18c5 100644 --- a/src/coinst/xeniface_coinst.def +++ b/src/coinst/xeniface_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/xeniface_coinst.rc b/src/coinst/xeniface_coinst.rc index 8fbfb02..d43b5f7 100644 --- a/src/coinst/xeniface_coinst.rc +++ b/src/coinst/xeniface_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, @@ -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" diff --git a/src/xenagent/convdevice.h b/src/xenagent/convdevice.h index 088ff15..6f80931 100644 --- a/src/xenagent/convdevice.h +++ b/src/xenagent/convdevice.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/xenagent/devicelist.h b/src/xenagent/devicelist.h index 3e260f8..8e7b6a0 100644 --- a/src/xenagent/devicelist.h +++ b/src/xenagent/devicelist.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/xenagent/messages.mc b/src/xenagent/messages.mc index 56f0e5d..8e65f5a 100644 --- a/src/xenagent/messages.mc +++ b/src/xenagent/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/xenagent/service.h b/src/xenagent/service.h index 32a6b8d..1e82ef0 100644 --- a/src/xenagent/service.h +++ b/src/xenagent/service.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/xenagent/xenagent.rc b/src/xenagent/xenagent.rc index ea40aec..0696a33 100644 --- a/src/xenagent/xenagent.rc +++ b/src/xenagent/xenagent.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, @@ -55,4 +56,4 @@ #define VER_FILESUBTYPE 0 #include "common.ver" -#include "messages.rc" \ No newline at end of file +#include "messages.rc" diff --git a/src/xenagent/xenifacedevice.h b/src/xenagent/xenifacedevice.h index 3b5e473..d85e469 100644 --- a/src/xenagent/xenifacedevice.h +++ b/src/xenagent/xenifacedevice.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/xeniface.inf b/src/xeniface.inf index 8968d6e..0abde23 100644 --- a/src/xeniface.inf +++ b/src/xeniface.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/xeniface/assert.h b/src/xeniface/assert.h index cac74c2..d4d977b 100644 --- a/src/xeniface/assert.h +++ b/src/xeniface/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/xeniface/driver.c b/src/xeniface/driver.c index 14c4931..6c3032b 100644 --- a/src/xeniface/driver.c +++ b/src/xeniface/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/xeniface/driver.h b/src/xeniface/driver.h index f3c86e8..4fb6308 100644 --- a/src/xeniface/driver.h +++ b/src/xeniface/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/xeniface/fdo.c b/src/xeniface/fdo.c index 6aabf96..b07eb4d 100644 --- a/src/xeniface/fdo.c +++ b/src/xeniface/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/xeniface/fdo.h b/src/xeniface/fdo.h index 1fedc09..b7b86d7 100644 --- a/src/xeniface/fdo.h +++ b/src/xeniface/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/xeniface/ioctl_sharedinfo.c b/src/xeniface/ioctl_sharedinfo.c index 7870732..49203d3 100644 --- a/src/xeniface/ioctl_sharedinfo.c +++ b/src/xeniface/ioctl_sharedinfo.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/xeniface/ioctl_store.c b/src/xeniface/ioctl_store.c index 97062df..1352773 100644 --- a/src/xeniface/ioctl_store.c +++ b/src/xeniface/ioctl_store.c @@ -1,4 +1,5 @@ -/* Copyright (c) Citrix Systems Inc. +/* Copyright (c) Xen Project. + * Copyright (c) Cloud Software Group, Inc. * Copyright (c) Rafal Wojdyla * All rights reserved. * diff --git a/src/xeniface/ioctl_suspend.c b/src/xeniface/ioctl_suspend.c index 6289a94..daa6dfb 100644 --- a/src/xeniface/ioctl_suspend.c +++ b/src/xeniface/ioctl_suspend.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/xeniface/ioctls.c b/src/xeniface/ioctls.c index a624bd1..044c2f9 100644 --- a/src/xeniface/ioctls.c +++ b/src/xeniface/ioctls.c @@ -1,4 +1,5 @@ -/* Copyright (c) Citrix Systems Inc. +/* Copyright (c) Xen Project. + * Copyright (c) Cloud Software Group, Inc. * Copyright (c) Rafal Wojdyla * All rights reserved. * diff --git a/src/xeniface/ioctls.h b/src/xeniface/ioctls.h index c954e9e..0437825 100644 --- a/src/xeniface/ioctls.h +++ b/src/xeniface/ioctls.h @@ -1,4 +1,5 @@ -/* Copyright (c) Citrix Systems Inc. +/* Copyright (c) Xen Project. + * Copyright (c) Cloud Software Group, Inc. * Copyright (c) Rafal Wojdyla * All rights reserved. * diff --git a/src/xeniface/log.h b/src/xeniface/log.h index 724bc3a..85eb63b 100644 --- a/src/xeniface/log.h +++ b/src/xeniface/log.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/xeniface/mutex.h b/src/xeniface/mutex.h index f436f13..a025137 100644 --- a/src/xeniface/mutex.h +++ b/src/xeniface/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/xeniface/names.h b/src/xeniface/names.h index 9d282f7..d56f242 100644 --- a/src/xeniface/names.h +++ b/src/xeniface/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/xeniface/registry.c b/src/xeniface/registry.c index 9f5628c..8f84818 100644 --- a/src/xeniface/registry.c +++ b/src/xeniface/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/xeniface/registry.h b/src/xeniface/registry.h index 92aa7b6..1cf8671 100644 --- a/src/xeniface/registry.h +++ b/src/xeniface/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/xeniface/thread.c b/src/xeniface/thread.c index 4d767a0..3816d23 100644 --- a/src/xeniface/thread.c +++ b/src/xeniface/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/xeniface/thread.h b/src/xeniface/thread.h index 929f34e..8a18fbc 100644 --- a/src/xeniface/thread.h +++ b/src/xeniface/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/xeniface/types.h b/src/xeniface/types.h index 2339143..3df1f0d 100644 --- a/src/xeniface/types.h +++ b/src/xeniface/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/xeniface/util.h b/src/xeniface/util.h index ef00a55..71c887d 100644 --- a/src/xeniface/util.h +++ b/src/xeniface/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/xeniface/wmi.c b/src/xeniface/wmi.c index 0d21b92..5bbf123 100644 --- a/src/xeniface/wmi.c +++ b/src/xeniface/wmi.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/xeniface/wmi.h b/src/xeniface/wmi.h index 2656b46..dca2e84 100644 --- a/src/xeniface/wmi.h +++ b/src/xeniface/wmi.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/xeniface/xeniface.rc b/src/xeniface/xeniface.rc index c113fac..b0e0600 100644 --- a/src/xeniface/xeniface.rc +++ b/src/xeniface/xeniface.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,