From d1d027199672f514253cbd7ddef1903fdf2c3710 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 15 Sep 2005 15:21:57 +0000 Subject: [PATCH] * Check for w3m. --- Makefile.am | 7 ++++++- configure.ac | 1 + doc/manual/Makefile.am | 5 +++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index ccc5bf273..aee2d9998 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,6 @@ SUBDIRS = externals src scripts corepkgs doc misc tests EXTRA_DIST = substitute.mk nix.spec nix.spec.in bootstrap.sh \ - svn-revision nix.conf.example + svn-revision nix.conf.example NEWS include ./substitute.mk @@ -45,3 +45,8 @@ endif svn-revision: svnversion . > svn-revision + +all-local: NEWS + +NEWS: + cp doc/manual/NEWS.txt NEWS diff --git a/configure.ac b/configure.ac index 79b483061..321653956 100644 --- a/configure.ac +++ b/configure.ac @@ -82,6 +82,7 @@ NEED_PROG(bunzip2, bunzip2) NEED_PROG(shell, sh) AC_PATH_PROG(xmllint, xmllint, false) AC_PATH_PROG(xsltproc, xsltproc, false) +AC_PATH_PROG(w3m, w3m, false) AC_PATH_PROG(flex, flex, false) AC_PATH_PROG(bison, bison, false) NEED_PROG(perl, perl) diff --git a/doc/manual/Makefile.am b/doc/manual/Makefile.am index 2cc376612..c85c79d9d 100644 --- a/doc/manual/Makefile.am +++ b/doc/manual/Makefile.am @@ -51,7 +51,8 @@ NEWS.txt: release-notes.xml $(XSLTPROC) --nonet --xinclude quote-literals.xsl release-notes.xml | \ $(XSLTPROC) --nonet --output $@.tmp.html $(NEWS_OPTS) \ $(docbookxsl)/html/docbook.xsl - - w3m -dump $@.tmp.html > $@ + $(w3m) -dump $@.tmp.html > $@ + rm $@.tmp.html all-local: manual.html NEWS.html NEWS.txt @@ -71,7 +72,7 @@ images: cp $(docbookxsl)/images/callouts/*.png images/callouts chmod +w -R images -KEEP = manual.html manual.is-valid version.txt $(MANS) +KEEP = manual.html manual.is-valid version.txt $(MANS) NEWS.html NEWS.txt EXTRA_DIST = $(MANUAL_SRCS) $(FIGURES) $(KEEP)