about summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-10-08 15:33:00 +0200
committerFlorian Weimer <fweimer@redhat.com>2020-10-08 15:37:59 +0200
commit1a945ba5ad2d05a560e10bcd4c8bf2c94e7d8d53 (patch)
tree32e3da16140c90acf289d163dd174ea1ff9e173f /scripts
parent542923d949e8b2480e48bd85fea13cf5d00d30b7 (diff)
downloadglibc-1a945ba5ad2d05a560e10bcd4c8bf2c94e7d8d53.tar.gz
glibc-1a945ba5ad2d05a560e10bcd4c8bf2c94e7d8d53.tar.xz
glibc-1a945ba5ad2d05a560e10bcd4c8bf2c94e7d8d53.zip
scripts/update-copyrights: Update csu/version.c, elf/dl-usage.c
Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/update-copyrights6
1 files changed, 6 insertions, 0 deletions
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"
       ;;