From: Eric Wong Date: Fri, 1 Jan 2021 05:10:57 +0000 (+0000) Subject: Makefile.PL: add update-copyrights target X-Git-Tag: v1.7.0~1434 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=35ea5266bf71747c3ebec638fd53e23a2522908e Makefile.PL: add update-copyrights target It might save me a few cycles every year to not have to scroll through git history to see how it's run. --- diff --git a/Makefile.PL b/Makefile.PL index 924e8dfd..613a72ae 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,5 +1,5 @@ #!/usr/bin/perl -w -# Copyright (C) 2013-2020 all contributors +# Copyright (C) 2013-2021 all contributors # License: AGPL-3.0+ use strict; use ExtUtils::MakeMaker; @@ -234,5 +234,11 @@ symlink-install : for x in \$(EXE_FILES); do \\ ln -sf "\$\$lei" \$\$(basename "\$\$x"); \\ done + +update-copyrights : + \@case '\$(GNULIB_PATH)' in '') echo >&2 GNULIB_PATH unset; false;; esac + git ls-files | UPDATE_COPYRIGHT_HOLDER='all contributors' \\ + UPDATE_COPYRIGHT_USE_INTERVALS=2 \\ + xargs \$(GNULIB_PATH)/build-aux/update-copyright EOF }