Skip to content

Commit 00d66c6

Browse files
OwenSmithPaul Durrant
authored and
Paul Durrant
committed
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 <[email protected]> Manually fixed whitespace at end of files. Signed-off-by: Owen Smith <[email protected]>
1 parent 71e24ce commit 00d66c6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+90
-57
lines changed

LICENSE

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
Copyright (c) Citrix Systems Inc.
1+
Copyright (c) Xen Project.
2+
Copyright (c) Cloud Software Group, Inc.
23
All rights reserved.
34

45
Redistribution and use in source and binary forms,
@@ -27,4 +28,3 @@ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
2728
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2829
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2930
SUCH DAMAGE.
30-

include/cache_interface.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,

include/debug_interface.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,
@@ -172,4 +173,3 @@ typedef struct _XENBUS_DEBUG_INTERFACE_V1 XENBUS_DEBUG_INTERFACE, *PXENBUS_DEBUG
172173
#define XENBUS_DEBUG_INTERFACE_VERSION_MAX 1
173174

174175
#endif // _XENBUS_DEBUG_INTERFACE_H
175-

include/evtchn_interface.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,
@@ -358,4 +359,3 @@ typedef struct _XENBUS_EVTCHN_INTERFACE_V9 XENBUS_EVTCHN_INTERFACE, *PXENBUS_EVT
358359
#define XENBUS_EVTCHN_INTERFACE_VERSION_MAX 9
359360

360361
#endif // _XENBUS_EVTCHN_INTERFACE_H
361-

include/gnttab_interface.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,
@@ -300,4 +301,3 @@ typedef struct _XENBUS_GNTTAB_INTERFACE_V4 XENBUS_GNTTAB_INTERFACE, *PXENBUS_GNT
300301
#define XENBUS_GNTTAB_INTERFACE_VERSION_MAX 4
301302

302303
#endif // _XENBUS_GNTTAB_INTERFACE_H
303-

include/hid_interface.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,

include/range_set_interface.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,
@@ -176,4 +177,3 @@ typedef struct _XENBUS_RANGE_SET_INTERFACE_V1 XENBUS_RANGE_SET_INTERFACE, *PXENB
176177
#define XENBUS_RANGE_SET_INTERFACE_VERSION_MAX 1
177178

178179
#endif // _XENBUS_RANGE_SET_INTERFACE_H
179-

include/revision.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,

include/store_interface.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,
@@ -325,4 +326,3 @@ typedef struct _XENBUS_STORE_INTERFACE_V2 XENBUS_STORE_INTERFACE, *PXENBUS_STORE
325326
#define XENBUS_STORE_INTERFACE_VERSION_MAX 2
326327

327328
#endif // _XENBUS_STORE_INTERFACE_H
328-

include/suspend_interface.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,
@@ -174,4 +175,3 @@ typedef struct _XENBUS_SUSPEND_INTERFACE_V1 XENBUS_SUSPEND_INTERFACE, *PXENBUS_S
174175
#define XENBUS_SUSPEND_INTERFACE_VERSION_MAX 1
175176

176177
#endif // _XENBUS_SUSPEND_INTERFACE_H
177-

include/unplug_interface.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,
@@ -113,4 +114,3 @@ typedef struct _XENBUS_UNPLUG_INTERFACE_V1 XENBUS_UNPLUG_INTERFACE, *PXENBUS_UNP
113114
#define XENBUS_UNPLUG_INTERFACE_VERSION_MAX 1
114115

115116
#endif // _XENBUS_UNPLUG_INTERFACE_H
116-

include/xen-types.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,

include/xen-version.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,

include/xen-warnings.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,

include/xen.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,

src/coinst/coinst.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,

src/coinst/xenvkbd_coinst.def

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
; Copyright (c) Citrix Systems Inc.
1+
; Copyright (c) Xen Project.
2+
; Copyright (c) Cloud Software Group, Inc.
23
; All rights reserved.
34
;
45
; Redistribution and use in source and binary forms,

src/xenvkbd.inf

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
; Copyright (c) Citrix Systems Inc.
1+
; Copyright (c) Xen Project.
2+
; Copyright (c) Cloud Software Group, Inc.
23
; All rights reserved.
34
;
45
; Redistribution and use in source and binary forms,

src/xenvkbd/assert.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,

src/xenvkbd/bus.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,

src/xenvkbd/bus.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,
@@ -49,4 +50,3 @@ BusTeardown(
4950
);
5051

5152
#endif // _XENVKBD_BUS_H
52-

src/xenvkbd/dbg_print.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,

src/xenvkbd/driver.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,

src/xenvkbd/driver.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,

src/xenvkbd/fdo.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,

src/xenvkbd/fdo.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,

src/xenvkbd/frontend.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,

src/xenvkbd/frontend.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,

src/xenvkbd/hid.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,

src/xenvkbd/hid.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,
@@ -70,4 +71,3 @@ HidSendReadReport(
7071
);
7172

7273
#endif // _XENVKBD_VKBD_H
73-

src/xenvkbd/mrsw.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,

src/xenvkbd/mutex.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,

src/xenvkbd/names.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,

src/xenvkbd/pdo.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,

src/xenvkbd/pdo.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,

src/xenvkbd/registry.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,

src/xenvkbd/registry.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,

src/xenvkbd/ring.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,

src/xenvkbd/ring.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,

src/xenvkbd/thread.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,
@@ -223,4 +224,3 @@ ThreadJoin(
223224

224225
__ThreadFree(Thread);
225226
}
226-

src/xenvkbd/thread.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,
@@ -72,4 +73,3 @@ ThreadJoin(
7273
);
7374

7475
#endif // _XENVKBD_THREAD_H
75-

src/xenvkbd/types.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,

src/xenvkbd/util.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,

src/xenvkbd/vkbd.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,

src/xenvkbd/xenvkbd.rc

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* Copyright (c) Citrix Systems Inc.
1+
/* Copyright (c) Xen Project.
2+
* Copyright (c) Cloud Software Group, Inc.
23
* All rights reserved.
34
*
45
* Redistribution and use in source and binary forms,

0 commit comments

Comments
 (0)