From 6533e235e80ae4b2624b7c934ce989e029f669de Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Sat, 12 Nov 2005 07:50:03 +0000
Subject: [PATCH] when building, automatically generate an HTML version of the
 info page, nano.html

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3168 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
---
 ChangeLog               | 7 +++++++
 README.CVS              | 2 +-
 doc/texinfo/Makefile.am | 7 ++++++-
 3 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 8aa994e7..01ec3296 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -136,6 +136,10 @@ CVS code -
   do_yesno()
 	- Make mouse clicks on the Yes/No/All shortcuts work properly
 	  when the MORE_SPACE flag is set. (DLR)
+- README.CVS:
+	- Mention that the minimum required version of texinfo is 4.0,
+	  since that's the first version that supports generating HTML.
+	  (DLR)
 - doc/nano.texi:
 	- Fix inconsistent wording and punctuation. (DLR)
 	- Add missing configure options. (Mike Frysinger, minor tweaks
@@ -145,6 +149,9 @@ CVS code -
 - doc/nanorc.sample:
 	- Tweak the "c-file" regex for characters to properly accept
 	  '\"' and reject '"' and '''. (DLR)
+- doc/texinfo/Makefile.am:
+	- Automatically generate an HTML version of the info page,
+	  nano.html. (DLR)
 - src/Makefile.am:
 	- Add browser.c, help.c, and prompt.c to nano_SOURCES. (DLR)
 
diff --git a/README.CVS b/README.CVS
index 4252f666..0d28589e 100644
--- a/README.CVS
+++ b/README.CVS
@@ -11,7 +11,7 @@ packages:
 - automake (version >= 1.7)
 - gettext (version >= 0.11.5)
 - groff
-- texinfo
+- texinfo (version >= 4.0)
 - cvs
 - ssh (with support for the SSH version 2 protocol)
 - glib 2.x (if your system doesn't have vsnprintf())
diff --git a/doc/texinfo/Makefile.am b/doc/texinfo/Makefile.am
index 32677208..895967e3 100644
--- a/doc/texinfo/Makefile.am
+++ b/doc/texinfo/Makefile.am
@@ -2,4 +2,9 @@ info_TEXINFOS = nano.texi
 
 MAKEINFO = makeinfo --no-split
 
-EXTRA_DIST = nano.info
+BUILT_SOURCES = nano.html
+
+nano.html: nano.texi
+	cat $< | makeinfo --no-split --html > $@
+
+EXTRA_DIST = $(info_TEXINFOS) $(BUILT_SOURCES)
-- 
GitLab