Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2013-01-21 20:20:23 +0400
committerChristopher Faylor <me@cgf.cx>2013-01-21 20:20:23 +0400
commitf5183c25330bc8dbde2665f51acbe99694201a1f (patch)
tree738eea33e1fdc0841c1256be672793611da56a27
parente6e5ab69361d7687df456db65ec057be79934bfa (diff)
* update-copyright: Recognize configure.ac scripts too.
-rw-r--r--winsup/cygwin/ChangeLog4
-rwxr-xr-xwinsup/cygwin/update-copyright4
2 files changed, 6 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 1bb191603..93a8062a7 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,9 @@
2013-01-21 Christopher Faylor <me.cygwin2013@cgf.cx>
+ * update-copyright: Recognize configure.ac scripts too.
+
+2013-01-21 Christopher Faylor <me.cygwin2013@cgf.cx>
+
* cygerrno.h (__reg3): Define.
* cygmalloc.h (__reg3): Ditto.
diff --git a/winsup/cygwin/update-copyright b/winsup/cygwin/update-copyright
index 112592eb3..ad5eb2310 100755
--- a/winsup/cygwin/update-copyright
+++ b/winsup/cygwin/update-copyright
@@ -54,7 +54,7 @@ sub update_maybe($%) {
while (<>) {
if ($copyright) {
push @file, $_;
- } elsif (/^[#\s]*Copyright/o) {
+ } elsif (/^(?:dnl\s|[#\s]*)Copyright/o) {
$copyright = $_;
$copyright .= scalar <> while $copyright =~ /,\s*$/o;
if ($copyright !~ /Red Hat, Inc\.\n/o) {
@@ -64,7 +64,7 @@ sub update_maybe($%) {
for my $date ($copyright =~ /(\d+)/g) {
$dates{$date} = 1;
}
- my $indent = ($copyright =~ /\A([#\s]*)/o)[0];
+ my $indent = ($copyright =~ /\A(dnl\s+|[#\s]*)/o)[0];
my $newcopyright = addwrap $indent,
$indent . 'Copyright ' .
(join ', ', sort {$a <=> $b} sort keys %dates) .