build-aux/update-copyright

Branch


Log

Author Commit Date CI Message
Collin Funk 9a1a6385 2025-06-09T19:50:35 Silence 'time-stamp' warnings with bleeding-edge Emacs. * build-aux/announce-gen: Use "%Y" instead of "%:y" for the 'time-stamp-format' local variable. * build-aux/do-release-commit-and-tag: Likewise. * build-aux/gendocs.sh: Likewise. * build-aux/git-version-gen: Likewise. * build-aux/gitlog-to-changelog: Likewise. * build-aux/gnu-web-doc-update: Likewise. * build-aux/gnupload: Likewise. * build-aux/move-if-change: Likewise. * build-aux/prefix-gnulib-mk: Likewise. * build-aux/update-copyright: Likewise. * build-aux/useless-if-before-free: Likewise. * build-aux/vc-list-files: Likewise. * top/bootstrap: Likewise. * top/bootstrap-funclib.sh: Likewise. * build-aux/bootstrap: Regenerate.
Pádraig Brady 7b089321 2025-01-01T09:24:36 maint: run 'make update-copyright'
Paul Eggert 169b43fd 2024-12-31T23:46:36 maint: update update-copyright for Emacs * build-aux/update-copyright: Add support for Emacs, which uses file names like Changelog.1 that are not man pages, and file names like emacs.1.in that are man page templates.
Collin Funk 71dd87c3 2024-07-04T04:04:11 Make time-stamp after-save-hooks buffer-local. * build-aux/announce-gen: Pass optional arguments to 'add-hook'. * build-aux/bootstrap: Likewise. * build-aux/do-release-commit-and-tag: Likewise. * build-aux/gendocs.sh: Likewise. * build-aux/git-version-gen: Likewise. * build-aux/gitlog-to-changelog: Likewise. * build-aux/gnu-web-doc-update: Likewise. * build-aux/gnupload: Likewise. * build-aux/move-if-change: Likewise. * build-aux/prefix-gnulib-mk: Likewise. * build-aux/update-copyright: Likewise. * build-aux/useless-if-before-free: Likewise. * build-aux/vc-list-files: Likewise. * top/bootstrap: Likewise. * top/bootstrap-funclib.sh: Likewise.
Jim Meyering fc9ce2a0 2024-01-15T10:36:34 update-copyright: handle more cases * build-aux/update-copyright: Handle cases like gunzip.in with its two copyright lines. Making it work required two changes: don't stop upon first match. And then, when continuing, a little trickiness: knowing that the final substitution would reset m{}g's "pos()", so save and restore that, to avoid an infinite loop in some cases. * tests/test-update-copyright.sh: Add a test for this.
Paul Eggert b6470fd8 2024-01-06T20:03:36 * build-aux/update-copyright: Fix grammar in comment (taken from Emacs).
Simon Josefsson 5b92dd0a 2024-01-01T10:31:48 maint: run 'make update-copyright'
Bruno Haible 2f443e2d 2023-10-03T14:44:21 update-copyright tests: Fix test failure (regression 2023-06-18). * build-aux/update-copyright: Add "use re 'eval';" declaration.
Paul Eggert 3a29557b 2023-06-18T00:27:52 Update \(en in copyright notices * build-aux/update-copyright (ndash_re): New var, matching \(en too. (stmt_remainder_re, stmt): Use it. (stmt): Match year in constructs like "\(en2023". (ndash): Now \(en in man pages.
Jim Meyering 7f1b3233 2023-01-02T22:52:08 update-copyright: also work with two or more updatable lines in a file * build-aux/update-copyright: Replace every occurrence of the copyright line, not just the first one. * tests/test-update-copyright.sh: Add a test case for this.
Simon Josefsson 32a72f45 2023-01-01T01:14:21 maint: run 'make update-copyright'
Bernhard Voelker 87e6634b 2022-01-04T00:16:50 license: fix GPLv3 texts to use a comma instead of semicolon. See: https://www.gnu.org/licenses/gpl-3.0.html#howto Run: $ git grep -l 'Foundation; either version 3' \ | xargs sed -i '/Foundation; either version 3/ s/n; e/n, e/' * All files using GPLv3: Adjust via the above command.
Paul Eggert eec12c00 2022-01-01T09:43:19 maint: run 'make update-copyright'
Paul Eggert 4b948321 2021-01-01T07:28:52 maint: run 'make update-copyright'
Jim Meyering ef5e01e1 2020-04-04T08:11:47 maint: remove a stray inter-word space in a 6x-repeated comment Induce the changes by running this: re='by perl'; g grep -l "$re"|xargs perl -pi -e "s/$re/by perl/" * build-aux/announce-gen: Change "by perl" to "by perl". * build-aux/gitlog-to-changelog: Likewise. * build-aux/prefix-gnulib-mk: Likewise. * build-aux/update-copyright: Likewise. * build-aux/useless-if-before-free: Likewise. * tests/test-update-copyright.sh: Likewise.
Paul Eggert 2cdc1baf 2020-01-01T00:00:18 maint: Run 'make update-copyright'
Paul Eggert 1ce2386b 2019-10-14T13:36:44 update-copyright: use en dashes in .texi ranges * build-aux/update-copyright: Update ranges in .tex, .texi, and .texinfo files to use en dashes instead of hyphens.
Paul Eggert 82ba8d96 2019-10-14T13:07:19 update-copyright: allow en dashes in year ranges * build-aux/update-copyright: Match year ranges like "1998--2019", which are used in the Autoconf manual.
Bruno Haible b5a9fa67 2019-07-16T10:02:30 update-copyright: Make it work again (regression from 2019-06-15). Reported by Brian C. Lane <bcl@redhat.com>. * build-aux/update-copyright: Add back the -0777, -p, -i options.
Bruno Haible a5a93a6e 2019-06-19T12:06:23 Reorder pieces of header in perl scripts. The desired order is - Prologue part 1 (2 lines with #!) - Program short description - Copyright and license notice - Written-by notice - Program short description (optional) - Program long description (optional) - Prologue part 2 - Time stamp - Code Reported by Paul Eggert. * build-aux/announce-gen: Reorder header. * build-aux/gitlog-to-changelog: Likewise. * build-aux/useless-if-before-free: Likewise. * build-aux/prefix-gnulib-mk: Add copyright notice and short description. * build-aux/update-copyright: Likewise. Add short description. Bump time-stamp-line-limit to 200.
Bruno Haible 36bfd586 2019-06-16T14:54:43 Restore Emacs time-stamp hook applicability. Reported by Darshit Shah <darnir@gnu.org>. * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50. * build-aux/announce-gen: Likewise. * build-aux/gitlog-to-changelog: Likewise. * build-aux/prefix-gnulib-mk: Likewise. * build-aux/update-copyright: Likewise.
Bruno Haible c2fdc30c 2019-06-15T22:03:09 Fix comments in last commit. Reported by Paul Eggert. * build-aux/useless-if-before-free: Fix comment regarding the second line. * build-aux/announce-gen: Likewise. * build-aux/gitlog-to-changelog: Likewise. * build-aux/prefix-gnulib-mk: Likewise. * build-aux/update-copyright: Likewise. * tests/test-update-copyright.sh: Update test program accordingly.
Bruno Haible a05d5d12 2019-06-15T13:03:58 Fix scripts to have valid executable format on Alpine Linux. Reported by Tim Rühsen <tim.ruehsen@gmx.de>. Idea by Paul Eggert. * build-aux/useless-if-before-free: Use a prologue that starts with '#!/bin/sh'. * build-aux/announce-gen: Likewise. * build-aux/gitlog-to-changelog: Likewise. * build-aux/prefix-gnulib-mk: Likewise. * build-aux/update-copyright: Likewise. * tests/test-update-copyright.sh: Update test program accordingly.
Paul Eggert e6633650 2019-01-01T00:25:11 maint: Run 'make update-copyright'
Paul Eggert db0b059a 2018-03-07T00:29:38 maint: write-file-hooks -> before-save-hook write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and it's time to use the recommended replacement. Problem reported by Glenn Morris in: https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html * build-aux/announce-gen, build-aux/bootstrap: * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh: * build-aux/git-version-gen, build-aux/gitlog-to-changelog: * build-aux/gnu-web-doc-update, build-aux/gnupload: * build-aux/move-if-change, build-aux/prefix-gnulib-mk: * build-aux/update-copyright, build-aux/useless-if-before-free: * build-aux/vc-list-files: Update hook usage for files where Gnulib is the canonical source.
Bruno Haible 16fc1cdc 2018-01-05T22:08:14 maint: Add encoding marker for Emacs to non-ASCII sources. Similar to commit f406941a8a2ec5fbf3eacc386b9be09d6593d53b from Paul Eggert <eggert@cs.ucla.edu> 2015-09-24. To determine the file list that need the marker, I used the command: for f in `find . -type f | grep -v '^\./\.git/' | grep -v '^\./tests/'`; do if iconv -f ASCII -t ASCII < $f > /dev/null 2>&1 ; then : ; else if iconv -f UTF-8 -t UTF-8 < $f > /dev/null 2>&1 ; then if grep 'The GNU C Library is' $f > /dev/null; then :; else if grep 'coding: utf-8' $f > /dev/null; then :; else echo $f fi fi fi fi done | LC_ALL=C sort
Mathieu Lirzin c3827a91 2018-01-04T15:59:04 update-copyright: Handle use of © * build-aux/update-copyright ($circle_c_re): Update regex to handle use of © in headers.
Paul Eggert 281b825e 2018-01-01T00:57:25 maint: Run 'make update-copyright'
Paul Eggert ca35d468 2017-09-13T00:48:18 all: prefer https: URLs
Paul Eggert a3fd683d 2017-01-01T02:59:23 version-etc: new year * build-aux/gendocs.sh (version): * doc/gendocs_template: * doc/gendocs_template_min: * doc/gnulib.texi: * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright dates by hand in templates and the like. * all files: Run 'make update-copyright'.
Paul Eggert 8c4223e2 2016-01-12T15:20:39 Port "$@" to OpenIndiana ksh93 In http://lists.gnu.org/archive/html/bug-autoconf/2015-12/msg00000.html Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh (derived from ksh 93t+ 2010-03-05). ${1+"$@"} works around an ancient bug long-dead shells, so remove the workaround. * build-aux/announce-gen, build-aux/do-release-commit-and-tag: * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update: * build-aux/prefix-gnulib-mk, build-aux/update-copyright: * build-aux/useless-if-before-free, tests/test-update-copyright.sh: Use "$@" instead of ${1+"$@"}.
Paul Eggert 6118065a 2016-01-12T09:29:40 Port Universal Time settings to strict POSIX * build-aux/announce-gen, build-aux/bootstrap: * build-aux/do-release-commit-and-tag, build-aux/git-version-gen: * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update: * build-aux/gnupload, build-aux/mkinstalldirs: * build-aux/move-if-change, build-aux/prefix-gnulib-mk: * build-aux/update-copyright, build-aux/useless-if-before-free: * build-aux/vc-list-files, tests/test-strftime.c: Use TZ="UTC0", not TZ="UTC". Either works on GNU platforms, but POSIX says the behavior of TZ="UTC" is undefined.
Paul Eggert 71090a2a 2016-01-01T00:56:19 version-etc: new year * build-aux/gendocs.sh (version): * doc/gendocs_template: * doc/gendocs_template_min: * doc/gnulib.texi: * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright dates by hand in templates and the like. * all files: Run 'make update-copyright'.
Friedrich Haubensak 841d0dcf 2015-07-02T14:36:33 update-copyright: fix test failure with perl >= 5.22 * build-aux/update-copyright: Escape a literal left curly bracket, required with perl >= 5.22
Paul Eggert 8582958a 2015-01-15T12:57:10 update-copyright: apply to self * build-aux/update-copyright: Fix copyright date. How ironic!
Jim Meyering 06c61ed4 2015-01-11T16:44:35 update-copyright: recognize groff's \(co marker * build-aux/update-copyright (circle_c_re): Also accept uses of \(co, as found in gzip.1.
Paul Eggert b9bfe784 2015-01-01T01:38:23 version-etc: new year * doc/gnulib.texi: * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date. * all files: Run 'make update-copyright'.
Eric Blake 1276a2c5 2014-01-01T00:04:40 maint: update copyright I ran 'make update-copyright'. Signed-off-by: Eric Blake <eblake@redhat.com>
Jim Meyering 4f439be5 2013-01-03T10:23:30 update-copyright: avoid copyright notice date corruption Given a sequence of copyright year numbers in which the final one was a two-digit number that happened to be a substring of a preceding four-digit year number, we would mistakenly update the substring (from two- to four-digit) rather than the two-digit number at the end, which, combined with the addition of the current 4-digit year number would yield two 5-digit year numbers, e.g., here, it would convert the first "99" to "1999, 2013" rather than the final one: 1991, 99 11999, 20131, 1999 * build-aux/update-copyright: Tighten a regexp. * tests/test-update-copyright.sh: Add a test case to trigger the bug. Reported by Joseph Myers in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
Eric Blake 9fc81090 2013-01-01T00:50:58 maint: update all copyright year number ranges Run "make update-copyright". Compare to commit 1602f0a from last year. Signed-off-by: Eric Blake <eblake@redhat.com>
Paul Eggert a4d796fb 2012-02-05T13:42:03 maint: spelling fixes
Jim Meyering 4994b1aa 2012-01-27T10:19:26 update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2 * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2, convert a sequence with gaps to the minimal containing range. For example, convert 2000, 2004-2007, 2009 to 2000-2009. * tests/test-update-copyright.sh: Test for this. The FSF confirmed it is ok to do this, assuming there is at least one significant change per year in the affected range: http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
Jim Meyering 1602f0af 2012-01-01T10:04:58 maint: update all copyright year number ranges Run "make update-copyright".
Bruce Korb 5f260f75 2011-01-02T17:21:42 document new copyright owner name changes
Simon Josefsson db16e845 2011-01-02T20:02:03 build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER environment variable.
Jim Meyering d60f3b0c 2011-01-01T20:17:23 maint: update almost all copyright ranges to include 2011 Run the new "make update-copyright" rule.
Jim Meyering b2e2010c 2010-01-01T10:31:12 update nearly all FSF copyright year lists to include 2010 Use the same procedure as for 2009, outlined in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
Jim Meyering 4052c269 2009-12-28T12:06:03 update-copyright: you may specify a max. line length other than 72 * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
Jim Meyering b3602e85 2009-10-30T15:02:02 perl scripts: remove #!/usr/bin/perl in favor of more portable... Rather than putting #!/usr/bin/perl on the first line, start with a variant of what's recommended by "man perlrun" that invokes the first "perl" program from your shell's search path. * build-aux/gitlog-to-changelog: Replace #!... as above. Add a "Local Variables" perl mode setting. Prompted by a patch from Ludovic Courtès. Improved by Eric Blake. * build-aux/useless-if-before-free: Likewise. * build-aux/announce-gen: Likewise. * build-aux/update-copyright: Likewise.
Ralf Wildenhues acaed473 2009-09-10T19:57:57 Fix copyright header in build-aux scripts. * build-aux/git-version-gen: Fix copyright header to match GPLv3 recommendation. * build-aux/ncftpput-ftp: Likewise. * build-aux/update-copyright: Likewise. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Joel E. Denny b49d23eb 2009-08-14T13:12:54 update-copyright: implement forced reformatting * build-aux/update-copyright: Implement and document UPDATE_COPYRIGHT_FORCE. * tests/test-update-copyright.sh: Test it.
Joel E. Denny 1978084a 2009-08-14T01:10:08 update-copyright: much ado about intervals * build-aux/update-copyright: Implement and document UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse of copyright year intervals. Also, document UPDATE_COPYRIGHT_YEAR. * tests/test-update-copyright.sh: Test it.
Joel E. Denny bde528cc 2009-08-13T22:40:34 update-copyright: convert 2-digit to 4-digit years * build-aux/update-copyright: Implement and document. * tests/test-update-copyright.sh: Update.
Joel E. Denny 109f2942 2009-08-06T10:22:32 update-copyright: update documentation to point to maint.mk * build-aux/update-copyright: Here.
Joel E. Denny db430480 2009-08-05T23:30:14 update-copyright: support C-style comments * build-aux/update-copyright: Implement and document. * tests/test-update-copyright.sh: Test.
Joel E. Denny 48ecb786 2009-08-05T20:51:27 update-copyright: support omitted "(C)" * build-aux/update-copyright: Implement and document. Also, allow variable whitespace before "(C)". * tests/test-update-copyright.sh: Test.
Joel E. Denny 9faeba56 2009-08-05T16:52:24 update-copyright: don't trip on non-FSF copyright statements * build-aux/update-copyright: Fix so that the first correctly formatted FSF copyright statement is recognized no matter what appears before it. Update documentation. * tests/test-update-copyright.sh: Test that.
Joel E. Denny 54eab06a 2009-08-05T15:31:15 update-copyright: clean up code a little * build-aux/update-copyright: Append "_re" to the name of any variable holding a regular expression. Replace "old" and "new" with "stmt" in variable names. Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not handled correctly. Format code more consistently.
Joel E. Denny 8bdaa78f 2009-08-03T23:06:24 update-copyright: support @copyright{} and &copy; * build-aux/update-copyright: Implement and document. * tests/test-update-copyright.sh: Test.
Jim Meyering 296de108 2009-08-04T09:25:12 update-copyright: rename some variables * build-aux/update-copyright: Rename a few variables for clarity. Tweak syntax. List Joel E. Denny as coauthor.
Joel E. Denny 48145b34 2009-08-03T20:05:50 update-copyright: fix bug for 2-digit last year and add tests * build-aux/update-copyright: Fix bug. Use UPDATE_COPYRIGHT_YEAR from environment as current year if specified. * modules/update-copyright-tests: New * tests/test-update-copyright.sh: New.
Joel E. Denny f552f0f2 2009-07-31T09:38:05 update-copyright: handle leading tabs in line prefix * build-aux/update-copyright: Count leading tabs as 8 spaces when computing margin. This helps with the formatting of ChangeLogs, for example. Fix documentation a little.
Joel E. Denny dbe91756 2009-07-31T09:32:30 update-copyright: support EOL=\r\n * build-aux/update-copyright: Implement that.
Joel E. Denny 1c63e541 2009-07-31T09:11:53 update-copyright: automatically format copyright statements * build-aux/update-copyright: Implement that. Also, be a little more predictable and safer by always failing when the full copyright format is not perfectly recognized as an unbroken whole. Discussed at <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>. Rewrite documentation.
Joel E. Denny 4097b521 2009-07-29T15:17:53 update-copyright: generalize comment handling * build-aux/update-copyright: Handle copyright statements within more comment styles. Document usage. Report any file with an external copyright holder or parse failure.
Jim Meyering 8dc0e5d6 2009-07-29T16:22:21 update-copyright: new module * modules/update-copyright: New file. * build-aux/update-copyright: New file. * MODULES.html.sh (maint+release support): Add update-copyright.