bug-gnulib
[Top][All Lists]
Advanced

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

[PATCH] Update doc "UPDATED" machinery.


From: Thien-Thi Nguyen
Subject: [PATCH] Update doc "UPDATED" machinery.
Date: Thu, 19 Jun 2008 10:02:30 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Zonking a CVS-ism in gnulib documentation...

BTW, what is the prevailing advice if i want to publish a git repo
containing only diffs between upstream gnulib my branches?  The goal is
to make these branches available w/ minimal space/bandwidth cost.

thi

_______________________________________________________
Update doc "UPDATED" machinery.

* doc/Makfile (update-stamp): New target.
(gnulib.info, gnulib.html, gnulib.dvi, gnulib.pdf): Depend on update-stamp.
(mostlyclean): Delete update-stamp.
* doc/gnulib.texi: No longer @set UPDATED directly.
Instead, @include update-stamp.

Signed-off-by: Thien-Thi Nguyen <address@hidden>
---
 doc/.gitignore  |    1 +
 doc/Makefile    |    7 +++++--
 doc/gnulib.texi |    2 +-
 3 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/doc/.gitignore b/doc/.gitignore
index 175321e..b9634ef 100644
--- a/doc/.gitignore
+++ b/doc/.gitignore
@@ -14,3 +14,4 @@ gnulib.info-1
 gnulib.info-2
 gnulib.info-3
 gnulib.html
+update-stamp
diff --git a/doc/Makefile b/doc/Makefile
index a95adfe..fcf988d 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -24,12 +24,15 @@ html: $(doc).html
 dvi: $(doc).dvi
 pdf: $(doc).pdf
 
-# Dependencies. Search for @include to find them all.
-gnulib.info gnulib.html gnulib.dvi gnulib.pdf: gnulib.texi gnulib-intro.texi 
gnulib-tool.texi $(wildcard headers/*.texi) $(wildcard functions/*.texi) 
quote.texi error.texi gcd.texi relocatable-maint.texi regexprops-generic.texi 
fdl.texi
+update-stamp: *.texi */*.texi
+       date -u -r $$(ls -t $^ | sed 1q) +"@set UPDATED %F %T UTC" > $@
+
+gnulib.info gnulib.html gnulib.dvi gnulib.pdf: update-stamp
 standards.info standards.html standards.dvi: standards.texi make-stds.texi 
fdl.texi
 
 mostlyclean:
        rm -f *.aux *.cp *.cps *.fn *.ky *.log *.pg *.toc *.tp *.vr *.vrs
+       rm -f update-stamp
 
 clean: mostlyclean
        rm -f *.info *.html *.dvi *.ps *.pdf
diff --git a/doc/gnulib.texi b/doc/gnulib.texi
index c5f8fd7..6656d9e 100644
--- a/doc/gnulib.texi
+++ b/doc/gnulib.texi
@@ -10,7 +10,7 @@
 @end ifclear
 @comment %**end of header
 
address@hidden UPDATED $Date: 2007-09-09 13:20:45 $
address@hidden update-stamp
 
 @copying
 This manual is for GNU Gnulib (updated @value{UPDATED}),
-- 
1.5.3.5





reply via email to

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