summaryrefslogtreecommitdiffstats
path: root/gettext-tools
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2003-05-22 21:51:58 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:10:37 +0200
commit39f248609fae3ac735f16569347da9f4b1d79895 (patch)
treea91d495732ece0c2fd79c6d2e79a377092de9d4a /gettext-tools
parented9a89a635e884bc81a3ecc9e35b1ae9c1028e7f (diff)
downloadexternal_gettext-39f248609fae3ac735f16569347da9f4b1d79895.zip
external_gettext-39f248609fae3ac735f16569347da9f4b1d79895.tar.gz
external_gettext-39f248609fae3ac735f16569347da9f4b1d79895.tar.bz2
Fix last patch, as it didn't work.
Diffstat (limited to 'gettext-tools')
-rw-r--r--gettext-tools/doc/Makefile.am16
1 files changed, 14 insertions, 2 deletions
diff --git a/gettext-tools/doc/Makefile.am b/gettext-tools/doc/Makefile.am
index f743598..9147b90 100644
--- a/gettext-tools/doc/Makefile.am
+++ b/gettext-tools/doc/Makefile.am
@@ -55,8 +55,20 @@ iso-3166.texi: ISO_3166 iso-3166.sed
mv iso-3166.tmp $(srcdir)/iso-3166.texi
# The dependencies of stamp-vti generated by automake are incomplete.
-stamp-vti: $(info_TEXINFOS) $(top_srcdir)/../version.sh
-
+# So we have to duplicate the entire rule which would otherwise be generated
+# by automake.
+stamp-vti: $(info_TEXINFOS) $(gettext_TEXINFOS) $(top_srcdir)/../version.sh
+ (dir=.; test -f ./gettext.texi || dir=$(srcdir); \
+ set `$(SHELL) $(top_srcdir)/../config/mdate-sh $$dir/gettext.texi`; \
+ echo "@set UPDATED $$1 $$2 $$3"; \
+ echo "@set UPDATED-MONTH $$2 $$3"; \
+ echo "@set EDITION $(VERSION)"; \
+ echo "@set VERSION $(VERSION)") > vti.tmp
+ cmp -s vti.tmp version.texi \
+ || (echo "Updating version.texi"; \
+ cp vti.tmp version.texi)
+ rm -f vti.tmp
+ cp version.texi $@
# We distribute only the split HTML documentation.
# The user can generate the others, via