[09/28] scripts/update-copyrights: Update csu/version.c, elf/dl-usage.c

Message ID c09581872b6e398f6f862d5d622e19dd1adc5544.1601569371.git.fweimer@redhat.com
State New
Headers show
Series
  • glibc-hwcaps support
Related show

Commit Message

Florian Weimer via Libc-alpha Oct. 1, 2020, 4:32 p.m.
---
 scripts/update-copyrights | 6 ++++++
 1 file changed, 6 insertions(+)

-- 
Red Hat GmbH, https://de.redhat.com/ , Registered seat: Grasbrunn,
Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Charles Cachera, Brian Klemm, Laurie Krebs, Michael O'Neill

Comments

Florian Weimer via Libc-alpha Oct. 7, 2020, 6:41 p.m. | #1
LGTM, thanks.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>


On 01/10/2020 13:32, Florian Weimer via Libc-alpha wrote:
> ---

>  scripts/update-copyrights | 6 ++++++

>  1 file changed, 6 insertions(+)

> 

> diff --git a/scripts/update-copyrights b/scripts/update-copyrights

> index 5ab9489511..7cca0f2c3d 100755

> --- a/scripts/update-copyrights

> +++ b/scripts/update-copyrights

> @@ -70,6 +70,12 @@ for f in $files; do

>        # Pre-1991 gaps in copyright years, so cannot use a single range.

>        UPDATE_COPYRIGHT_USE_INTERVALS=1 "$update_script" "$f"

>        ;;

> +    csu/version.c | elf/dl-usage.c)

> +      # Update the copyright string in the output message.

> +      year="$(date +%Y)"

> +      sed -i 's/^Copyright (C) [0-9]\{4\} /Copyright (C) '"$year"' /' $f

> +      "$update_script" "$f"

> +      ;;

>      *)

>        "$update_script" "$f"

>        ;;

> 


Ok.

Patch

diff --git a/scripts/update-copyrights b/scripts/update-copyrights
index 5ab9489511..7cca0f2c3d 100755
--- a/scripts/update-copyrights
+++ b/scripts/update-copyrights
@@ -70,6 +70,12 @@  for f in $files; do
       # Pre-1991 gaps in copyright years, so cannot use a single range.
       UPDATE_COPYRIGHT_USE_INTERVALS=1 "$update_script" "$f"
       ;;
+    csu/version.c | elf/dl-usage.c)
+      # Update the copyright string in the output message.
+      year="$(date +%Y)"
+      sed -i 's/^Copyright (C) [0-9]\{4\} /Copyright (C) '"$year"' /' $f
+      "$update_script" "$f"
+      ;;
     *)
       "$update_script" "$f"
       ;;