nmh-workers
[Top] [All Lists]

[Nmh-workers] date in nmh distribution

2006-01-12 07:53:31
Any thoughts on the following patch? It gets rid of the DATE file and
has the date automatically updated when autoconf is run. This has the
advantage that the date will be automatically updated when a release is
made and the man pages won't read "1 Jul 2003" for ever. It also means
the date gets updated for building out of CVS but that's fairly
harmless.

Oliver

Index: Makefile.in
===================================================================
RCS file: /cvsroot/nmh/nmh/Makefile.in,v
retrieving revision 1.13
diff -u -r1.13 Makefile.in
--- Makefile.in 13 Nov 2005 19:27:37 -0000      1.13
+++ Makefile.in 12 Jan 2006 11:43:46 -0000
@@ -70,7 +70,7 @@
 .SUFFIXES:
 
 # all files in this directory included in the distribution
-DIST = ChangeLog COPYRIGHT DATE INSTALL MACHINES README VERSION                
\
+DIST = ChangeLog COPYRIGHT INSTALL MACHINES README VERSION             \
        ChangeLog install-sh mkinstalldirs Makefile.in aclocal.m4       \
        acconfig.h config.h.in configure.in configure stamp-h.in        \
        config.sub config.guess
Index: configure.in
===================================================================
RCS file: /cvsroot/nmh/nmh/configure.in,v
retrieving revision 1.75
diff -u -r1.75 configure.in
--- configure.in        7 Jan 2006 15:22:20 -0000       1.75
+++ configure.in        12 Jan 2006 11:43:46 -0000
@@ -34,7 +34,7 @@
 AC_SUBST(VERSION,AC_PACKAGE_VERSION)dnl
 
 dnl What date of nmh are we building?
-DATE=`cat ${srcdir}/DATE`
+DATE=m4_esyscmd(date +"'%e %B %Y'")
 echo "configuring for nmh dated $DATE"
 AC_SUBST(DATE)dnl
 


This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you.


_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
http://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>