summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2019-03-04 01:12:04 -0800
committerPádraig Brady <P@draigBrady.com>2019-03-04 01:15:51 -0800
commit7c35a36bf48510514cc77b8b0410b688569efb04 (patch)
treea8653e34eeb948e36b50f92b9f4cdfca5879a9da /man
parent6bf6d7f4613e1d16215972970574b1bf6df07494 (diff)
downloadcoreutils-7c35a36bf48510514cc77b8b0410b688569efb04.tar.gz
build: revert recent change with distributed man page handling
* man/local.mk: commit f114495e added an extra check to ensure a binary was working before using it to generate the man page. However this was not working for the false(1) command, and also one can generally specify that one should not be using generated commands on the current system by passing 'cross_compiling=yes' to the configure invocation.
Diffstat (limited to 'man')
-rw-r--r--man/local.mk11
1 files changed, 2 insertions, 9 deletions
diff --git a/man/local.mk b/man/local.mk
index ee74d1f9b..eee38396c 100644
--- a/man/local.mk
+++ b/man/local.mk
@@ -191,16 +191,9 @@ endif
&& $(MKDIR_P) $$t \
&& (cd $$t && $(LN_S) '$(abs_top_builddir)/src/'$$prog$(EXEEXT) \
$$argv$(EXEEXT)) \
- || exit 1; \
-## Double-check whether the built binary succeeds with --help as the above
-## CROSS_COMPILING condition might have been wrong in some cases, e.g. when
-## building against an incompatible glibc version on the same platform.
- $$t/$$argv$(EXEEXT) --help </dev/null >/dev/null \
- && run_help2man="$(run_help2man)" \
- || run_help2man="$(srcdir)/man/dummy-man"; \
- : $${SOURCE_DATE_EPOCH=`cat $(srcdir)/.timestamp 2>/dev/null || :`} \
+ && : $${SOURCE_DATE_EPOCH=`cat $(srcdir)/.timestamp 2>/dev/null || :`} \
&& : $${TZ=UTC0} && export TZ \
- && export SOURCE_DATE_EPOCH && $${run_help2man} \
+ && export SOURCE_DATE_EPOCH && $(run_help2man) \
--source='$(PACKAGE_STRING)' \
--include=$(srcdir)/man/$$name.x \
--output=$$t/$$name.1 \