From a4fdf7e49e1a56fdd7a6083727813bd5cf2158e6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 17 Aug 2023 06:24:25 +0200 Subject: [PATCH] Continued: - updated year - fixed grep --- make-javadoc.sh | 4 ++-- update-year-jprojects.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/make-javadoc.sh b/make-javadoc.sh index 27dcbc6..92db6f6 100755 --- a/make-javadoc.sh +++ b/make-javadoc.sh @@ -42,8 +42,8 @@ for project in ${LIST}; do echo "$0: Cleaning up Javadoc for '${project}' ..." rm -rf dist/javadoc/ - M=$(grep "${project}" "${UNMAINTAINED}") - B=$(grep "${project}" "${BROKEN}") + M=$(echo "${UNMAINTAINED}" | grep "${project}") + B=$(echo "${BROKEN}" | grep "${project}") if [ -f "src/.gitkeep" ] then echo "$0: project='${project}' has a .gitkeep file in 'src', won't scan." diff --git a/update-year-jprojects.sh b/update-year-jprojects.sh index 9672a32..b174364 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 - 2022/g' - find */ -type f -print0 | xargs -0 sed -i 's/2020 Free Software/2022 Free Software/g' + 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' DIFF=$(git diff) -- 2.39.5