summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-07-23 06:59:26 +0000
committerJim Meyering <jim@meyering.net>2003-07-23 06:59:26 +0000
commit873a22151fd07ce02bb5a01f83a86545f14eb518 (patch)
tree1b579d4d62e359cbcc3b6e22f400460074f9ac42 /man
parente8794d23eccd33e6d9f2616f9823c62dcb799df1 (diff)
downloadcoreutils-873a22151fd07ce02bb5a01f83a86545f14eb518.tar.xz
.
Diffstat (limited to 'man')
-rw-r--r--man/Makefile.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/man/Makefile.in b/man/Makefile.in
index e24d41aab..513c5c8fa 100644
--- a/man/Makefile.in
+++ b/man/Makefile.in
@@ -473,13 +473,18 @@ yes.1: $(common_dep) $(srcdir)/yes.x ../src/yes.c
# Note the use of $t/$*, rather than just `$*' as in other packages.
# That is necessary to avoid failures for programs that are also shell built-in
# functions like echo, false, printf, pwd.
+# The shenanigans after invoking $(HELP2MAN) are solely to convert the
+# two uses of program_name in rm.1's examples with `rm'.
+# Otherwise, they would otherwise appear as `rm.td/rm'.
.x.1:
@echo "Updating man page $@"; \
mkdir $t; \
(cd $t && $(LN_S) ../../src/$(mapped_name)$(EXEEXT) $*$(EXEEXT)); \
$(HELP2MAN) \
--include=$(srcdir)/$*.x \
- --output=$@ $t/$*$(EXEEXT); \
+ --output=$@t $t/$*$(EXEEXT)
+ sed 's,$t/$*,$*,' $@t > $@t2
+ mv $@t2 $@
rm -rf $t
check-local: check-x-vs-1 check-programs-vs-x