[Top][All Lists]

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

Re: use git-version-gen (was: Re: bison.1 in version control?)

From: Joel E. Denny
Subject: Re: use git-version-gen (was: Re: bison.1 in version control?)
Date: Sat, 2 Aug 2008 02:45:08 -0400 (EDT)

On Sun, 20 Jul 2008, Joel E. Denny wrote:

> > m4 uses this additional trick, to turn on gnits mode for major releases but 
> > use 
> > the more relaxed gnu mode for development:

> Sure.  I've seen one place where this change might help with Bison.  
> During development between releases, I don't like that "make dist" should 
> force me to name the next release in NEWS by using the name of the current 
> state of the code.  That is, I feel that it would be best if unofficial 
> tarballs are not forced to have bogus NEWS entries.

I pushed the patch below for this.

> > > >            [The copyright year for this package])
> > 
> > This could almost be considered redundant information with the gnulib 
> > module 
> > version-etc.
> I'll look into that.

I'm not sure yet what to do with this.  That copyright year is hard-coded 
in gnulib/lib/version-etc.c, but doc/ also needs to depend on it.  
Seems like configure ought to substitute it instead.  Also, it's not clear 
to me that Bison's copyright year should be whatever gnulib was last 
updated to have.  Maybe the copyright year should come from the latest 
change shown by git log?  I need to think about it more, but suggestions 
are welcome.

>From a1e50014a0ba37b3de9900754be8c04f57d18c9a Mon Sep 17 00:00:00 2001
From: Joel E. Denny <address@hidden>
Date: Sat, 2 Aug 2008 02:32:29 -0400
Subject: [PATCH] Set gnu or gnits strictness.

* (AM_INIT_AUTOMAKE): Set gnu strictness during
development and gnits strictness for releases.  Based on Eric Blake's
suggestion at

diff --git a/ b/
index e1a6918..adb5271 100644
--- a/
+++ b/
@@ -30,7 +30,11 @@ AC_CONFIG_AUX_DIR([build-aux])
 # We don't have a file m4/, so we need Automake 1.8 or later.
-AM_INIT_AUTOMAKE([1.8 check-news readme-alpha dist-bzip2])
+# We want gnits strictness only when rolling a formal release so that we can,
+# for example, run make dist at other times without being required to add a
+# bogus NEWS entry.
+AM_INIT_AUTOMAKE([1.8 dist-bzip2]
+                 m4_bmatch(m4_defn([AC_PACKAGE_VERSION]), [-], [gnu], [gnits]))
 # Checks for the compiler.

reply via email to

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