]> Savannah Git Hosting - gnulib.git/commitdiff
maint: update update-copyright for Emacs
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 1 Jan 2025 07:46:36 +0000 (23:46 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 1 Jan 2025 07:46:36 +0000 (23:46 -0800)
* 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.

ChangeLog
build-aux/update-copyright

index 2f00298d383d087af52e13cd38e5d47209fc8206..29879bb53291fad4512a8a530a82ee274abcb206 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-12-31  Paul Eggert  <eggert@cs.ucla.edu>
+
+       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.
+
 2024-12-31  Collin Funk  <collin.funk1@gmail.com>
 
        servent tests: Fix failure due to missing htons declaration.
index 42f2693383548316b3a4db77c9ed338fbea3c4c2..0c3b8864a2b0abec347969cbf6794b3f0fcee3d5 100755 (executable)
 eval 'exec perl -wSx -0777 -pi "$0" "$@"'
      if 0;
 
-my $VERSION = '2024-07-04.10:56'; # UTC
+my $VERSION = '2025-01-01.07:36'; # UTC
 # The definition above must lie within the first 8 lines in order
 # for the Emacs time-stamp write hook (at end) to update it.
 # If you change this file with Emacs, please let the write hook
@@ -235,7 +235,7 @@ while (/(^|\n)(.{0,$prefix_max})$copyright_re/cg)
             else
               {
                 my $ndash = ($ARGV =~ /\.tex(i(nfo)?)?$/ ? "--"
-                             : $ARGV =~ /\.(\d[a-z]*|man)$/ ? "\\(en"
+                             : $ARGV =~ /\.(\d[a-z]*|man)(\.in)?$/ && $ARGV !~ /ChangeLog\./ ? "\\(en"
                              : "-");
 
                 $stmt =~