improve 'make web-manual'

Eric Blake <[email protected]>
Newsgroups gmane.comp.gnu.m4.patches
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm applying this, which picks up improvements made when coreutils
borrowed the idiom of a maintainer's 'make web-manual' from m4.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             [email protected]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmueaMACgkQ84KuGfSFAYBgYgCfWUAaU/F9odqtQAhTrCry2KVm
CmAAoM9M7GyXBquNwzXAlL7n6FMg1Dk7
=POkS
-----END PGP SIGNATURE-----

_______________________________________________
M4-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/m4-patches
m4.patch404 (text/plain, 2.1 KB)
From 39a8eb3846b65914fecf7b4f981e1dd029de1f5c Mon Sep 17 00:00:00 2001
From: Eric Blake <[email protected]>
Date: Tue, 3 Mar 2009 10:26:51 -0700
Subject: [PATCH] Improve web-manual maintainer rule.

* maint.mk (web-manual): Work with VPATH builds.  Factor
package-specific detail...
* cfg.mk (manual_title): ...to new variable.

Signed-off-by: Eric Blake <[email protected]>
---
 ChangeLog |    7 +++++++
 cfg.mk    |    5 ++++-
 maint.mk  |    6 +++---
 3 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 696493c..4bfaf6e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-03-03  Eric Blake  <[email protected]>
+
+	Improve web-manual maintainer rule.
+	* maint.mk (web-manual): Work with VPATH builds.  Factor
+	package-specific detail...
+	* cfg.mk (manual_title): ...to new variable.
+
 2009-02-26  Eric Blake  <[email protected]>

 	Make bootstrap easier on Solaris.
diff --git a/cfg.mk b/cfg.mk
index 8de2510..ff05a1e 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -1,5 +1,5 @@
 # Customize maint.mk.                           -*- makefile -*-
-# Copyright (C) 2003-2008 Free Software Foundation, Inc.
+# Copyright (C) 2003-2009 Free Software Foundation, Inc.

 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,6 +21,9 @@ gnu_ftp_host-beta = alpha.gnu.org
 gnu_ftp_host-major = ftp.gnu.org
 gnu_rel_host = $(gnu_ftp_host-$(RELEASE_TYPE))

+# Used in maint.mk's web-manual rule
+manual_title = GNU macro processor
+
 url_dir_list = \
   ftp://$(gnu_rel_host)/gnu/m4

diff --git a/maint.mk b/maint.mk
index e036105..5b3f7cc 100644
--- a/maint.mk
+++ b/maint.mk
@@ -193,8 +193,8 @@ delta-diff: prev-tarball new-tarball

 .PHONY: web-manual
 web-manual:
-	@cd ./doc ; \
-	  $(SHELL) $(abs_srcdir)/build-aux/gendocs.sh \
+	@cd '$(srcdir)/doc' ; \
+	  $(SHELL) ../build-aux/gendocs.sh -o '$(abs_builddir)/doc/manual' \
 	    --email $(PACKAGE_BUGREPORT) $(PACKAGE) \
-	    "$(PACKAGE_NAME) - GNU macro processor"
+	    "$(PACKAGE_NAME) - $(manual_title)"
 	@echo " *** Upload the doc/manual directory to web-cvs."
-- 
1.6.1.2
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.