From 5fd5725a6fbcf003800d1e904abc7dcfad7a00fe Mon Sep 17 00:00:00 2001 From: Michele Alberti <michele.alberti@cea.fr> Date: Mon, 22 Jul 2024 10:21:36 +0200 Subject: [PATCH] [ci] Revive script for updating headers. --- update_headers.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 update_headers.sh diff --git a/update_headers.sh b/update_headers.sh new file mode 100644 index 0000000..7406ccd --- /dev/null +++ b/update_headers.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +set -xe +NEW_DATE=$(date "+%Y") +OLD_DATE=$(date -d '1 year ago' "+%Y") +find . \( -type d -name .git -prune \) \( -type d -name ._build -prune \) -o -type f -print0 | xargs -0 sed -i 's/(C) '${OLD_DATE}'/(C) '${NEW_DATE}'/g' \ No newline at end of file -- GitLab