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 @ d169661, and 861 matches
(lines) in nbdkit @ e36cfb6fa4f8.

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 d169661 commit bbf47ff
Show file tree
Hide file tree
Showing 461 changed files with 464 additions and 464 deletions.
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# nbd client library in userspace
# Copyright (C) 2013-2022 Red Hat Inc.
# Copyright Red Hat
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ subdirectories.

## License

The software is copyright © Red Hat Inc. and licensed under the GNU
The software is Copyright Red Hat and licensed under the GNU
Lesser General Public License version 2 or above (LGPLv2+). See the
file [COPYING.LIB](COPYING.LIB) for details. The examples are under a
very liberal license.
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 @@
# nbd client library in userspace
# Copyright (C) 2013-2020 Red Hat Inc.
# Copyright Red Hat
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion bash-completion/nbdsh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# nbd client library in userspace
# Copyright (C) 2013-2020 Red Hat Inc.
# Copyright Red Hat
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
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 @@
# nbd client library in userspace
# Copyright (C) 2013-2019 Red Hat Inc.
# Copyright Red Hat
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
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 @@
# nbd client library in userspace
# Copyright (C) 2013-2021 Red Hat Inc.
# Copyright Red Hat
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
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/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/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/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-byte-swapping.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2018-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-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-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-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-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-minmax.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2018-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/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/utils/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/utils/bench.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* libnbd
* 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/utils/const-string-vector.h
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/utils/human-size.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbd client library in userspace
* Copyright (C) 2020-2021 Red Hat Inc.
* Copyright Red Hat
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion common/utils/human-size.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbd client library in userspace
* Copyright (C) 2020-2021 Red Hat Inc.
* Copyright Red Hat
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion common/utils/nbdkit-string.h
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/utils/string-vector.h
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/utils/test-human-size.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbd client library in userspace
* Copyright (C) 2020-2021 Red Hat Inc.
* Copyright Red Hat
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion common/utils/test-vector.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/utils/vector.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbdkit
* Copyright (C) 2018-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/utils/vector.h
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/utils/version.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbd client library in userspace
* Copyright (C) 2020 Red Hat Inc.
* Copyright Red Hat
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion common/utils/version.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* nbd client library in userspace
* Copyright (C) 2020 Red Hat Inc.
* Copyright Red Hat
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# nbd client library in userspace
# Copyright (C) 2013-2022 Red Hat Inc.
# Copyright Red Hat
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion copy/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# nbd client library in userspace
# Copyright (C) 2020-2022 Red Hat Inc.
# Copyright Red Hat
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion copy/copy-block-to-nbd.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# nbd client library in userspace
# Copyright (C) 2020 Red Hat Inc.
# Copyright Red Hat
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion copy/copy-file-to-file.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# nbd client library in userspace
# Copyright (C) 2020 Red Hat Inc.
# Copyright Red Hat
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion copy/copy-file-to-nbd.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# nbd client library in userspace
# Copyright (C) 2020 Red Hat Inc.
# Copyright Red Hat
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion copy/copy-file-to-null.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# nbd client library in userspace
# Copyright (C) 2020-2021 Red Hat Inc.
# Copyright Red Hat
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion copy/copy-file-to-qcow2-compressed.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# nbd client library in userspace
# Copyright (C) 2020-2022 Red Hat Inc.
# Copyright Red Hat
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion copy/copy-file-to-qcow2.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# nbd client library in userspace
# Copyright (C) 2020-2021 Red Hat Inc.
# Copyright Red Hat
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion copy/copy-nbd-error.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# nbd client library in userspace
# Copyright (C) 2022 Red Hat Inc.
# Copyright Red Hat
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion copy/copy-nbd-to-block.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# nbd client library in userspace
# Copyright (C) 2020 Red Hat Inc.
# Copyright Red Hat
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion copy/copy-nbd-to-file.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# nbd client library in userspace
# Copyright (C) 2020 Red Hat Inc.
# Copyright Red Hat
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion copy/copy-nbd-to-hexdump.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# nbd client library in userspace
# Copyright (C) 2020 Red Hat Inc.
# Copyright Red Hat
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion copy/copy-nbd-to-nbd.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# nbd client library in userspace
# Copyright (C) 2020 Red Hat Inc.
# Copyright Red Hat
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion copy/copy-nbd-to-nbd2.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# nbd client library in userspace
# Copyright (C) 2020 Red Hat Inc.
# Copyright Red Hat
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion copy/copy-nbd-to-null.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# nbd client library in userspace
# Copyright (C) 2020-2021 Red Hat Inc.
# Copyright Red Hat
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion copy/copy-nbd-to-small-block-error.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# nbd client library in userspace
# Copyright (C) 2020 Red Hat Inc.
# Copyright Red Hat
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
Expand Down
Loading

0 comments on commit bbf47ff

Please sign in to comment.