Skip to content

Commit

Permalink
maint: update update-copyright for Emacs
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
eggert committed Jan 1, 2025
1 parent cbe5f76 commit 169b43f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2024-12-31 Paul Eggert <[email protected]>

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 <[email protected]>

servent tests: Fix failure due to missing htons declaration.
Expand Down
4 changes: 2 additions & 2 deletions build-aux/update-copyright
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
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
Expand Down Expand Up @@ -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 =~
Expand Down

0 comments on commit 169b43f

Please sign in to comment.