]> git.mxchange.org Git - jprojects-scripts.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Thu, 17 Aug 2023 04:24:25 +0000 (06:24 +0200)
committerRoland Häder <roland@mxchange.org>
Thu, 17 Aug 2023 04:24:25 +0000 (06:24 +0200)
- updated year
- fixed grep

make-javadoc.sh
update-year-jprojects.sh

index 27dcbc6f231e0e2a218592bb05a0a82b06097f9e..92db6f6204585c921189d07f8f974cf10019d8ae 100755 (executable)
@@ -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."
index 9672a3259a4f0a63275e3dee16934c13e7d05e58..b17436439adaade054345d65bd3935b4e4d3d1cf 100755 (executable)
@@ -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)