bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: update-copyright local hook


From: Joel E. Denny
Subject: Re: update-copyright local hook
Date: Thu, 6 Aug 2009 10:32:02 -0400 (EDT)
User-agent: Alpine 1.00 (DEB 882 2007-12-20)

On Thu, 6 Aug 2009, Jim Meyering wrote:

> Heh.  Let's write my bogus suggestion off to morning caffeine deficiency.

:)

> How about this instead?
> 
> >From 0ec4fb7d6c2533eb4bb588f64616dd9c6883bcb4 Mon Sep 17 00:00:00 2001
> From: Jim Meyering <address@hidden>
> Date: Thu, 6 Aug 2009 09:25:05 +0200
> Subject: [PATCH] maint.mk: support update-copyright-local
> 
> * top/maint.mk (update-copyright-local): Define place-holder.
> (update-copyright): Depend on $(update-copyright-local).

That works for me.  Thanks, and thanks for reviewing and pushing all my 
other patches.

I'm not sure where ties between modules and maint.mk should be documented, 
but the stale advice in update-copyright ought to updated.  Here's a 
patch.

>From 443d6ead2f277fe0bdb1adf137a3e5c9de8a62bf Mon Sep 17 00:00:00 2001
From: Joel E. Denny <address@hidden>
Date: Thu, 6 Aug 2009 10:22:32 -0400
Subject: [PATCH] update-copyright: update documentation to point to maint.mk

* build-aux/update-copyright: Here.
---
 ChangeLog                  |    5 +++++
 build-aux/update-copyright |   17 +++--------------
 2 files changed, 8 insertions(+), 14 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index de582cf..0c2e8f9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-08-06  Joel E. Denny  <address@hidden>
+
+       update-copyright: update documentation to point to maint.mk
+       * build-aux/update-copyright: Here.
+
 2009-08-06  Jim Meyering  <address@hidden>
 
        maint.mk: support update-copyright-local
diff --git a/build-aux/update-copyright b/build-aux/update-copyright
index bbd2a04..68440f8 100755
--- a/build-aux/update-copyright
+++ b/build-aux/update-copyright
@@ -21,20 +21,9 @@ my $VERSION = '2009-08-06.01:08'; # UTC
 # Written by Jim Meyering and Joel E. Denny
 
 # The arguments to this script should be names of files that contain FSF
-# copyright statements to be updated.  For example, you may wish to
-# place a target like the following in the top-level makefile in your
-# project:
-#
-#   .PHONY: update-copyright
-#   update-copyright:
-#       if test -d .git; then                                   \
-#         git grep -l -w Copyright                              \
-#           | grep -v -E '(^|/)(COPYING|ChangeLog)'             \
-#           | xargs $(srcdir)/build-aux/$@;                     \
-#       fi
-#
-# In the second grep, you can build a list of files to skip within your
-# project.
+# copyright statements to be updated.  For example, you might wish to
+# use the update-copyright target rule in maint.mk from gnulib's
+# maintainer-makefile module.
 #
 # Iff an FSF copyright statement is discovered in a file and the final
 # year is not the current year, the statement is updated for the new
-- 
1.5.4.3





reply via email to

[Prev in Thread] Current Thread [Next in Thread]