diff options
author | Joel E. Denny <jdenny@clemson.edu> | 2009-08-03 23:06:24 -0400 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-08-04 17:58:08 +0200 |
commit | 8bdaa78f311ff9e5e03ff37ee5f546af14913802 (patch) | |
tree | 477625f1bf533dc62f9ff21dc69bbf82c52ddcb9 /build-aux/update-copyright | |
parent | 7ef1309415c41e2a3c361a80854d3866d310a87e (diff) | |
download | gnulib-8bdaa78f311ff9e5e03ff37ee5f546af14913802.tar.gz |
update-copyright: support @copyright{} and ©
* build-aux/update-copyright: Implement and document.
* tests/test-update-copyright.sh: Test.
Diffstat (limited to 'build-aux/update-copyright')
-rwxr-xr-x | build-aux/update-copyright | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/build-aux/update-copyright b/build-aux/update-copyright index 4a703339ac..b14dc50397 100755 --- a/build-aux/update-copyright +++ b/build-aux/update-copyright @@ -46,15 +46,15 @@ my $VERSION = '2009-08-04.07:25'; # UTC # looks like the start of a copyright statement. For example, each of # these by itself is fine: # -# Copyright (C) 1990-2005, 2007-2009 Free Software Foundation, -# Inc. +# Copyright @copyright{} 1990-2005, 2007-2009 Free Software +# Foundation, Inc. # -# # Copyright (c) 1990-2005, 2007-2009 Free Software +# # Copyright (C) 1990-2005, 2007-2009 Free Software # # Foundation, Inc. # # /* -# * Copyright (C) 90,2005,2007-2009 Free Software -# * Foundation, Inc. +# * Copyright © 90,2005,2007-2009 +# * Free Software Foundation, Inc. # */ # # However, the following format is not recognized because the line @@ -77,9 +77,10 @@ my $VERSION = '2009-08-04.07:25'; # UTC # breaks one. The worst that can happen is that a file is not updated # and a warning is issued. # -# 1. The format is "Copyright (C)" (where "(C)" can be "(c)"), then a -# list of copyright years, and then the name of the copyright -# holder, which is "Free Software Foundation, Inc.". +# 1. The format is "Copyright (C)" (where "(C)" can also be "(c)", +# "@copyright{}", or "©"), then a list of copyright years, and +# then the name of the copyright holder, which is "Free Software +# Foundation, Inc.". # 2. "Copyright (C)" appears at the beginning of a line except that it # may be prefixed by any sequence (e.g., a comment) of no more than # 5 characters. @@ -105,7 +106,7 @@ if (!$this_year || $this_year !~ m/^\d\d(\d\d)?$/) { my ($sec, $min, $hour, $mday, $month, $year) = localtime (time ()); $this_year = $year + 1900; } -my $copyright = 'Copyright \([cC]\)'; +my $copyright = 'Copyright (?:\([cC]\)|@copyright{}|©)'; my $holder = 'Free Software Foundation, Inc.'; my $prefix_max = 5; my $margin = 72; |