summaryrefslogtreecommitdiff
path: root/tests/test-update-copyright.sh
Commit message (Collapse)AuthorAgeFilesLines
* update-copyright: also work with two or more updatable lines in a fileJim Meyering2023-01-101-0/+8
| | | | | | * 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.
* maint: run 'make update-copyright'Simon Josefsson2023-01-011-1/+1
|
* In 'trap' commands, prefer symbolic to numeric signal names.Bruno Haible2022-11-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reported by Mike Fulton <fultonm@ca.ibm.com> in <https://lists.gnu.org/archive/html/bug-gnulib/2022-11/msg00130.html>. * gnulib-tool: Use symbolic signal names. * posix-modules: Likewise. * MODULES.html.sh: Likewise. * build-aux/bootstrap (prepare_GNULIB_SRCDIR): Likewise. * build-aux/csharpcomp.sh.in: Likewise. * build-aux/gnu-web-doc-update: Likewise. * top/autogen.sh: Likewise. * top/bootstrap-funclib.sh: Likewise. * top/gitsub.sh: Likewise. * lib/t-idcache: Likewise. * tests/havelib/rpath-1: Likewise. * tests/havelib/rpath-2_a: Likewise. * tests/havelib/rpath-2_b: Likewise. * tests/havelib/rpath-3_a: Likewise. * tests/havelib/rpath-3_b: Likewise. * tests/init.sh: Likewise. * tests/test-binary-io.sh: Likewise. * tests/test-c-stack.sh: Likewise. * tests/test-c-stack2.sh: Likewise. * tests/test-dprintf-posix.sh: Likewise. * tests/test-fpending.sh: Likewise. * tests/test-fprintf-posix.sh: Likewise. * tests/test-lseek.sh: Likewise. * tests/test-printf-posix.sh: Likewise. * tests/test-select-in.sh: Likewise. * tests/test-select-out.sh: Likewise. * tests/test-sigpipe.sh: Likewise. * tests/test-tsearch.sh: Likewise. * tests/test-update-copyright.sh: Likewise. * tests/test-vdprintf-posix.sh: Likewise. * tests/test-vfprintf-posix.sh: Likewise. * tests/test-vprintf-posix.sh: Likewise. * tests/test-xprintf-posix.sh: Likewise. * tests/uniwidth/test-uc_width2.sh: Likewise.
* Fix a couple of ShellCheck warnings.Bruno Haible2022-07-231-1/+1
| | | | | | | | | | | | | * MODULES.html.sh (sed_escape_slash): Remove unused variable. * build-aux/bootstrap: Avoid computed printf format strings. * build-aux/do-release-commit-and-tag: Likewise. * build-aux/gendocs.sh: Likewise. * build-aux/declared.sh: Fix "unrecognized option" message. * gnulib-tool (supplied_opts): Remove unused variable. (--single-con): Remove redundant option recognition. * tests/test-parse-duration.sh (nl): Remove unused variable. * tests/test-update-copyright.sh: Use double-quotes instead of single-quotes.
* license: fix GPLv3 texts to use a comma instead of semicolon.Bernhard Voelker2022-01-051-1/+1
| | | | | | | | | 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.
* maint: run 'make update-copyright'Paul Eggert2022-01-011-1/+1
|
* maint: run 'make update-copyright'Paul Eggert2020-12-311-1/+1
|
* maint: remove a stray inter-word space in a 6x-repeated commentJim Meyering2020-04-041-1/+1
| | | | | | | | | | | 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.
* update-copyright: reenable its always-skipped testJim Meyering2020-01-051-1/+1
| | | | | | | | * tests/test-update-copyright.sh: Restore the "-pi" options removed on 2019-06-15. Without those, an internal preliminary test would fail, causing this test always to be skipped. Verify that the test is now run and passes via this: ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
* maint: Run 'make update-copyright'Paul Eggert2019-12-311-1/+1
|
* Fix comments in last commit.Bruno Haible2019-06-151-6/+6
| | | | | | | | | | | 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.
* Fix scripts to have valid executable format on Alpine Linux.Bruno Haible2019-06-151-3/+17
| | | | | | | | | | | | | 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.
* maint: Run 'make update-copyright'Paul Eggert2019-01-011-1/+1
|
* maint: Run 'make update-copyright'Paul Eggert2018-01-011-1/+1
|
* all: prefer https: URLsPaul Eggert2017-09-131-1/+1
|
* version-etc: new yearPaul Eggert2017-01-011-1/+1
| | | | | | | | | | * 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'.
* Port "$@" to OpenIndiana ksh93Paul Eggert2016-01-121-1/+1
| | | | | | | | | | | | 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+"$@"}.
* version-etc: new yearPaul Eggert2016-01-011-1/+1
| | | | | | | | | | * 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'.
* version-etc: new yearPaul Eggert2014-12-311-1/+1
| | | | | | * doc/gnulib.texi: * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date. * all files: Run 'make update-copyright'.
* maint: update copyrightEric Blake2014-01-011-1/+1
| | | | | | I ran 'make update-copyright'. Signed-off-by: Eric Blake <eblake@redhat.com>
* update-copyright: avoid copyright notice date corruptionJim Meyering2013-01-031-0/+6
| | | | | | | | | | | | | | | | | 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
* maint: update all copyright year number rangesEric Blake2013-01-011-1/+1
| | | | | | Run "make update-copyright". Compare to commit 1602f0a from last year. Signed-off-by: Eric Blake <eblake@redhat.com>
* update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2Jim Meyering2012-01-271-0/+7
| | | | | | | | | | * 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
* maint: update all copyright year number rangesJim Meyering2012-01-011-1/+1
| | | | Run "make update-copyright".
* test-update-copyright.sh: avoid false-positive failureJim Meyering2011-11-251-3/+3
| | | | | | | * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work around false positive failure on Cygwin/Windows. The latter was matching erroneously-created files with names like update-copyright.test-ex.4.bak. Reported by Simon Josefsson.
* tests: test-update-copyright.sh: remove unnecessary "rm" commandsJim Meyering2011-07-271-3/+0
| | | | | * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak commands.
* update-copyright: adjust test to match changed codeJim Meyering2011-01-031-8/+8
| | | | | * tests/test-update-copyright.sh: Change test's expected output to match new actual output.
* maint: update almost all copyright ranges to include 2011Jim Meyering2011-01-011-1/+1
| | | | Run the new "make update-copyright" rule.
* tests: avoid test failure on Solaris 10 due to lack of PATH exportJim Meyering2010-11-131-0/+1
| | | | * tests/test-update-copyright.sh: Don't forget to export PATH.
* update-copyright test: Improve output when perl is missing or too old.Bruno Haible2010-09-041-4/+7
| | | | | | * tests/test-update-copyright.sh: Move test of Perl version down after the test whether Perl exists. Provide an explanation relating Perl's error message to Automake's SKIP: message.
* Don't augment PATH in TESTS_ENVIRONMENT.Bruno Haible2010-09-041-0/+3
| | | | | | | | | | * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT, set abs_aux_dir instead of augmenting PATH. * modules/vc-list-files-tests (Makefile.am): Likewise. * tests/test-update-copyright.sh: Augment PATH here. * tests/test-vc-list-files-cvs.sh: Augment PATH here, through path_prepend_. * tests/test-vc-list-files-git.sh: Likewise.
* test-update-copyright.sh: require perl 5.8.0Jim Meyering2010-09-021-3/+3
| | | | | | * tests/test-update-copyright.sh: Require 5.8.0, which Tom G. Christensen has confirmed is adequate, while 5.6.1 is not.
* test-update-copyright.sh: skip test if Perl is too oldJim Meyering2010-09-021-0/+4
| | | | | * tests/test-update-copyright.sh: Exit 77 if Perl is too old. Reported by Tom G. Christensen.
* test-update-copyright: don't let envvar setting cause test failureJim Meyering2010-01-011-0/+4
| | | | * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
* update nearly all FSF copyright year lists to include 2010Jim Meyering2010-01-011-1/+1
| | | | | Use the same procedure as for 2009, outlined in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
* test-update-copyright: don't hard-code /usr/bin/perlJim Meyering2009-11-231-1/+1
| | | | | | * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than perl to print the current year. Gilles Espinasse reported that the replaced use of perl was hard-coded as /usr/bin/perl.
* test-update-copyright: update test to match script changesEric Blake2009-11-021-1/+9
| | | | | | | * tests/test-update-copyright.sh: Avoid hard-coding perl location. Don't update *.bak created by earlier runs. Signed-off-by: Eric Blake <ebb9@byu.net>
* test-update-copyright: skip if perl is insufficientEric Blake2009-08-151-0/+17
| | | | | | | * tests/test-update-copyright.sh: Failure to run maintainer tool should not cause testsuite failure on cygwin 1.5. Signed-off-by: Eric Blake <ebb9@byu.net>
* update-copyright: implement forced reformattingJoel E. Denny2009-08-141-11/+11
| | | | | | * build-aux/update-copyright: Implement and document UPDATE_COPYRIGHT_FORCE. * tests/test-update-copyright.sh: Test it.
* update-copyright: much ado about intervalsJoel E. Denny2009-08-141-8/+85
| | | | | | | | * 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.
* update-copyright: convert 2-digit to 4-digit yearsJoel E. Denny2009-08-141-18/+18
| | | | | * build-aux/update-copyright: Implement and document. * tests/test-update-copyright.sh: Update.
* update-copyright: support C-style commentsJoel E. Denny2009-08-061-12/+74
| | | | | * build-aux/update-copyright: Implement and document. * tests/test-update-copyright.sh: Test.
* update-copyright: support omitted "(C)"Joel E. Denny2009-08-061-0/+21
| | | | | | * build-aux/update-copyright: Implement and document. Also, allow variable whitespace before "(C)". * tests/test-update-copyright.sh: Test.
* update-copyright: don't trip on non-FSF copyright statementsJoel E. Denny2009-08-051-7/+26
| | | | | | | * 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.
* update-copyright-tests: improve portabilityJoel E. Denny2009-08-051-38/+45
| | | | | * tests/test-update-copyright.sh: Use cmp if diff cannot handle -u or /dev/null. Suggested by Jim Meyering and Eric Blake.
* update-copyright: support @copyright{} and &copy;Joel E. Denny2009-08-041-13/+14
| | | | | * build-aux/update-copyright: Implement and document. * tests/test-update-copyright.sh: Test.
* update-copyright-tests: correctly test EOL=\r\n handlingJim Meyering2009-08-041-8/+9
| | | | | * tests/test-update-copyright.sh: Put \r at the end of some lines for the dos-eol tests. Based on a patch by Joel E. Denny.
* update-copyright: fix bug for 2-digit last year and add testsJoel E. Denny2009-08-041-0/+309
* 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.