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/2016, 2020/2016 - 2020/g'
23 find */ -type f -print0 | xargs -0 sed -i 's/2017, 2020/2017 - 2020/g'
24 find */ -type f -print0 | xargs -0 sed -i 's/2017 Free Software/2020 Free Software/g'
25 find */ -type f -print0 | xargs -0 sed -i 's/2017 Roland Häder/2020 Free Software Foundation/g'
31 echo "$0: Nothing to commit."
35 echo "$0: Committing ..."
36 git commit --signoff -S -a -m "Updated copyright year"