From 58c3b4b9348720c41146b08e4c85fbcc67224095 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 9 Jan 2024 23:36:02 +0100 Subject: [PATCH] Continued: - updated year (not yet done everywhere else) - add files before committing them --- commit-jprojects.sh | 3 +++ update-year-jprojects.sh | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/commit-jprojects.sh b/commit-jprojects.sh index 88ec307..48ce900 100755 --- a/commit-jprojects.sh +++ b/commit-jprojects.sh @@ -22,6 +22,7 @@ for project in ${LIST}; do if [ "$1" = "updated jar(s)" ] then # Special commit ... (known-binaries) + git add lib/ || exit 255 git commit --signoff -S lib/*.jar -m "$1" elif [ "$1" = "updated dist.sh" ] then @@ -30,10 +31,12 @@ for project in ${LIST}; do elif [ -n "$1" -a -n "$2" ] then # Regular commit with given message + git add $2 || exit 255 git commit $2 --signoff -S -m "$1" || exit 255 elif [ -d "$1" -o -f "$1" ] then # Limited commit with no message + git add $1 || exit 255 git commit $1 --signoff -S || exit 255 elif [ -n "$1" ] then diff --git a/update-year-jprojects.sh b/update-year-jprojects.sh index b174364..ea82554 100755 --- a/update-year-jprojects.sh +++ b/update-year-jprojects.sh @@ -19,8 +19,8 @@ for project in ${LIST}; do echo "$0: Updating (c) year in '${project}' ..." # Update both years when a new year has reached - find */ -type f -print0 | xargs -0 sed -i 's/2020, 2022/2020 - 2023/g' - find */ -type f -print0 | xargs -0 sed -i 's/2022 Free Software/2023 Free Software/g' + find */ -type f -print0 | xargs -0 sed -i 's/2020, 2023/2020 - 2024/g' + find */ -type f -print0 | xargs -0 sed -i 's/2023 Free Software/2024 Free Software/g' DIFF=$(git diff) -- 2.30.2