diff options
author | Gaƫl Bonithon <gael@xfce.org> | 2022-01-07 13:31:45 +0100 |
---|---|---|
committer | Romain Bouvier <skunnyk@alteroot.org> | 2022-02-01 14:35:41 +0000 |
commit | 2f493d79f2454dc2eb62dd955c0849e21587d6e1 (patch) | |
tree | 675c4620326e154e0853f4370a6fb0c74ffc1010 | |
parent | 7651c19ef009a99ac8367e88720231e58458d3af (diff) | |
download | xfce4-dev-tools-2f493d79f2454dc2eb62dd955c0849e21587d6e1.tar.gz |
xfce-do-release: Check the copyright year in `configure.ac*`
-rwxr-xr-x | helpers/xfce-do-release | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/helpers/xfce-do-release b/helpers/xfce-do-release index 9bc3822..7887122 100755 --- a/helpers/xfce-do-release +++ b/helpers/xfce-do-release @@ -197,6 +197,13 @@ update_configure_ac_in () { return 1 fi + if ! grep -zq "AC_COPYRIGHT(\[[^]]*$(date +%Y)[^]]*\])" "$configure_file"; then + printf '%b\n' \ + "\n\e[1mWarning:\e[0m The copyright year of the project does not seem to be up to date." \ + "This is just a check of '$configure_file' though, you should check this in the" \ + "whole source code, especially the about dialog and/or its command line counterpart.\n" + fi + if grep -q 'XDT_VERSION_INIT' "$configure_file"; then if [ "$1" = "pre" ]; then sed -i "s/^\(XDT_VERSION_INIT\s*\)(.*/\1([$version])/" "$configure_file" |