scripts/update-copyrights: Update csu/version.c, elf/dl-usage.c

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
This commit is contained in:
Florian Weimer 2020-10-08 15:33:00 +02:00
parent 542923d949
commit 1a945ba5ad

View File

@ -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"
;;