]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
scripts/update-copyrights: Update csu/version.c, elf/dl-usage.c
authorFlorian Weimer <fweimer@redhat.com>
Thu, 8 Oct 2020 13:33:00 +0000 (15:33 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 8 Oct 2020 13:37:59 +0000 (15:37 +0200)
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
scripts/update-copyrights

index 5ab94895110905b27503d3a734037c5720aeacf8..7cca0f2c3d28f38a4bbe1b792d2ddd75d82dcd4a 100755 (executable)
@@ -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"
       ;;