<<< Date Index >>>     <<< Thread Index >>>

Re: [PATCH] Remove reldate.h from EXTRADIST



# HG changeset patch
# User Christoph Berg <cb@xxxxxxxx>
# Date 1173975665 -3600
# Node ID 5c2f2072a4dbfa69f2db7a93ae52b984f65e165c
# Parent  2befb5b028d73cf7045b426f513d6b6c1c6a7681
Pull release date directly from Changelog.

diff -r 2befb5b028d7 -r 5c2f2072a4db doc/Makefile.am
--- a/doc/Makefile.am   Thu Mar 15 16:10:48 2007 +0100
+++ b/doc/Makefile.am   Thu Mar 15 17:21:05 2007 +0100
@@ -116,9 +116,6 @@ instdoc: instdoc.sh
 ../makedoc$(EXEEXT): $(top_srcdir)/makedoc.c
        (cd .. && $(MAKE) makedoc$(EXEEXT))
 
-../reldate.h:
-       (cd .. && $(MAKE) reldate.h)
-
 update-doc: stamp-doc-xml stamp-doc-chunked manual.txt manual.html
 
 muttrc.man: ../makedoc$(EXEEXT) $(top_srcdir)/init.h muttrc.man.head 
muttrc.man.tail
@@ -133,10 +130,11 @@ mutt.1: $(srcdir)/mutt.man
 mutt.1: $(srcdir)/mutt.man
        $(EDIT) $(srcdir)/mutt.man > $@
 
-stamp-doc-xml: ../makedoc$(EXEEXT) $(top_srcdir)/init.h manual.xml.head \
+stamp-doc-xml: $(top_srcdir)/makedoc.c $(top_srcdir)/init.h manual.xml.head \
                $(top_srcdir)/functions.h $(top_srcdir)/OPS* manual.xml.tail \
-               $(top_srcdir)/VERSION ../reldate.h
-       ( date=`cut -d\" -f2 ../reldate.h`; \
+               $(top_srcdir)/VERSION $(top_srcdir)/ChangeLog
+       $(MAKE) ../makedoc$(EXEEXT) # we do not want to rebuild the 
documentation in tarball builds
+       ( date=`head -n 1 $(top_srcdir)/ChangeLog | LC_ALL=C cut -d ' ' -f 1`; \
          sed -e "s/@VERSION\@/`cat $(top_srcdir)/VERSION` ($$date)/" 
$(srcdir)/manual.xml.head ;\
          $(MAKEDOC_CPP) $(top_srcdir)/init.h | ../makedoc -s ;\
          perl $(srcdir)/gen-map-doc $(top_srcdir)/functions.h 
$(top_srcdir)/OPS* < $(srcdir)/manual.xml.tail \

Christoph
-- 
cb@xxxxxxxx | http://www.df7cb.de/

Attachment: signature.asc
Description: Digital signature