summaryrefslogtreecommitdiff
path: root/tools/update-copyright
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-01-01 14:43:55 -0500
committerIan Moffett <ian@osmora.org>2024-01-01 14:43:55 -0500
commit6a43636fc0be60fcb9b6761981480f2bb9da41f8 (patch)
treeff50bc02e9026a503ae75f9d6466cd15e7e21cee /tools/update-copyright
parentbef918966be6f46fb52f11eeb587f20e0c4677e6 (diff)
project-wide: Make copyright year a range
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'tools/update-copyright')
-rwxr-xr-xtools/update-copyright2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/update-copyright b/tools/update-copyright
index d1af46c..0f2ba80 100755
--- a/tools/update-copyright
+++ b/tools/update-copyright
@@ -7,5 +7,5 @@ current_year=$(date +"%Y")
find . -type f -print0 | while read -d $'\0' file
do
# Replace the old copyright notice with the new one
- sed -i "s/\(Copyright (c) \)[0-9]\{4\}\(.*\)/\1${current_year}\2/g" "${file}"
+ sed -i "s/\(Copyright (c) \)2023-[0-9]\{4\}\(.*\)/\12023-${current_year}\2/g" "${file}"
done