Skip to content

Commit

Permalink
Update Red Hat Copyright Notices
Browse files Browse the repository at this point in the history
We've been advised to state Red Hat's Copyright as

  Copyright Red Hat

In order to collect our current copyright notices, I've used the following
"loose options" for git-grep (bash syntax):

  loose_options=(-i -e copyright --and -e 'red.?hat')

Namely, the command

  git grep -h "${loose_options[@]}"

produces 464 matches (lines) in libnbd @ d169661119f6, and 861 matches
(lines) in nbdkit @ e36cfb6.

Lest we replace strings too broadly, define the "strict pattern" as
follows (note that we assume LC_ALL=en_US.UTF-8):

  year='20[0-2][0-9]'
  year_range="$year(-$year)?"
  year_range_list="$year_range(, $year_range)*"
  year_range_list_opt="( $year_range_list)?"
  c_sym='(\(C\)|©)'
  company='Red Hat,? Inc\.'
  strict_pattern="[Cc]opyright $c_sym$year_range_list_opt $company"

The command

  git grep -h "${loose_options[@]}" \
  | grep -E -v -- "$strict_pattern"

produces zero lines in each of nbdkit and libnbd, meaning that the "strict
pattern" covers all matches from the "loose options".

Assuming that our filenames do not contain newline characters, replace the
copyright notices with the following command:

  git grep -l "${loose_options[@]}" \
  | sponge \
  | tr '\n' '\0' \
  | xargs -0 -r -- sed -i -E -e "s/$strict_pattern/Copyright Red Hat/" --

The resultant diffstat in each project shows that all notices have been
replaced (note that some files contain multiple notices, therefore the
number of files modified is less than the number of lines modified).

Signed-off-by: Laszlo Ersek <[email protected]>
  • Loading branch information
lersek committed Mar 4, 2023
1 parent e36cfb6 commit 712fe24
Show file tree
Hide file tree
Showing 859 changed files with 861 additions and 861 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
nbdkit
Copyright (C) 2013-2020 Red Hat Inc.
Copyright Red Hat

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# nbdkit
# Copyright (C) 2013-2020 Red Hat Inc.
# Copyright Red Hat
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ https://gitlab.com/nbdkit/nbdkit

## License

This software is copyright (C) Red Hat Inc. and licensed under a BSD
This software is Copyright Red Hat and licensed under a BSD
license. See [LICENSE](LICENSE) for details.

## Building from source
Expand Down
2 changes: 1 addition & 1 deletion bash-completion/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# nbdkit
# Copyright (C) 2018 Red Hat Inc.
# Copyright Red Hat
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion bash-completion/nbdkit
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# nbdkit bash completion script -*- shell-script -*-
# Copyright (C) 2010-2020 Red Hat Inc.
# Copyright Red Hat
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common-rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# nbdkit
# Copyright (C) 2013-2020 Red Hat Inc.
# Copyright Red Hat
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/allocators/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# nbdkit
# Copyright (C) 2018-2022 Red Hat Inc.
# Copyright Red Hat
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/allocators/allocator-internal.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2013-2020 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/allocators/allocator.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2013-2020 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/allocators/allocator.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2013-2020 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/allocators/malloc.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2013-2020 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/allocators/sparse.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2017-2020 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/allocators/zstd.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2017-2020 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/bitmap/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# nbdkit
# Copyright (C) 2018-2022 Red Hat Inc.
# Copyright Red Hat
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/bitmap/bitmap.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2018 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/bitmap/bitmap.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2018 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/bitmap/test-bitmap.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2018 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/gpt/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# nbdkit
# Copyright (C) 2019 Red Hat Inc.
# Copyright Red Hat
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/gpt/efi-crc32.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2018 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/gpt/gpt.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2018-2020 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/include/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# nbdkit
# Copyright (C) 2018-2020 Red Hat Inc.
# Copyright Red Hat
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/include/ansi-colours.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2022 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/include/array-size.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2013-2022 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/include/ascii-ctype.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2013-2020 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/include/ascii-string.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2013-2020 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/include/byte-swapping.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2013-2020 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/include/checked-overflow.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2013-2021 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/include/compiler-macros.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2013-2022 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/include/hexdigit.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2018-2022 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/include/isaligned.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2018 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/include/ispowerof2.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2018 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/include/iszero.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2018 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/include/minmax.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2019 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/include/nextnonzero.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2018 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/include/random.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2018 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/include/rounding.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2018 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/include/static-assert.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2013-2023 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/include/test-array-size.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2020-2022 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/include/test-ascii-ctype.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2020 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/include/test-ascii-string.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2020 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/include/test-byte-swapping.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2018 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/include/test-checked-overflow.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2021 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/include/test-isaligned.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2018 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/include/test-ispowerof2.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2018 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/include/test-iszero.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2018 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/include/test-minmax.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2018-2020 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/include/test-nextnonzero.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2018-2020 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/include/test-random.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2019 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/include/test-tvdiff.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2019 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/include/tvdiff.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2019 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/include/unique-name.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2013-2021 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/include/unix-path-max.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2020 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/protocol/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# nbdkit
# Copyright (C) 2018-2022 Red Hat Inc.
# Copyright Red Hat
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/protocol/generate-protostrings.sh.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# nbdkit
# Copyright (C) 2018-2022 Red Hat Inc.
# Copyright Red Hat
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/protocol/nbd-protocol.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2013-2020 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
2 changes: 1 addition & 1 deletion common/protocol/protostrings.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2018-2022 Red Hat Inc.
* Copyright Red Hat
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
Expand Down
Loading

0 comments on commit 712fe24

Please sign in to comment.