From 6bef3f16440d8311924411125db8ee5d4d56e287 Mon Sep 17 00:00:00 2001 From: Jim Meyering
Date: Mon, 31 Aug 2015 23:12:43 -0700 Subject: [PATCH] build: correct man-page generation rule MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The PATH was set incorrectly, so that the diff used by help2man was the one from $PATH, rather than the just-built one. * man/Makefile.am (dist_man1_MANS): Prepend ../src to PATH, not just "..". In http://debbugs.gnu.org/21023, Rodrigo Valiña Gutiérrez reported that diff.1 from the diffutils-3.3 tarball contained no description of the then-new --no-dereference option. --- man/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man/Makefile.am b/man/Makefile.am index fd136d2..bd18808 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -29,6 +29,6 @@ sdiff.1: $S/sdiff.c sdiff.x $(dist_man1_MANS): $(SRC_VERSION_C) help2man $(AM_V_GEN)base=`expr $@ : '\(.*\).1'` \ && (echo '[NAME]' && sed 's@/\* *@@; s/-/\\-/; q' $S/$$base.c) \ - | PATH="..$(PATH_SEPARATOR)$$PATH" \ + | PATH="../src$(PATH_SEPARATOR)$$PATH" \ $(srcdir)/help2man -i - -i $(srcdir)/$$base.x \ -S '$(PACKAGE) $(VERSION)' $$base > address@hidden && mv address@hidden $@ -- 2.3.7