4 . ./.jprojects.sh || exit 255
6 # Loop through all projects
7 for project in ${LIST}; do
8 if [ "${project}" = "jprojects-scripts" ]
10 echo "$0: Skipping jprojects-scripts ..."
12 elif [ ! -d "${JPROJECTS_HOME}/${project}" ]
14 echo "$0: Project '${project}' does not exist."
18 cd "${JPROJECTS_HOME}/${project}" || exit 255
20 echo "$0: Updating (c) year in '${project}' ..."
21 # Update both years when a new year has reached
22 find */ -type f -print0 | xargs -0 sed -i 's/2020, 2022/2020 - 2023/g'
23 find */ -type f -print0 | xargs -0 sed -i 's/2022 Free Software/2023 Free Software/g'
29 echo "$0: Nothing to commit."
33 echo "$0: Committing ..."
34 git commit --signoff -S -a -m "Updated copyright year"