diff options
author | Jim Meyering <jim@meyering.net> | 2003-07-22 16:32:33 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-07-22 16:32:33 +0000 |
commit | 1277d8b91c6c41283562865c1c0fc925a2e58280 (patch) | |
tree | 1783649b934e7c1b9d9dac9e42db0e37a3fed836 | |
parent | f7259485a4099764be43872a8ba830ee1883b0b2 (diff) | |
download | coreutils-1277d8b91c6c41283562865c1c0fc925a2e58280.tar.xz |
(.x.1): Substitute 's,$t/$*,$*,' on output of
help2man, to avoid having `rm.td/rm' appear in rm.1. Reported by
Thomas Luzat. See http://bugs.debian.org/202413 for details.
-rw-r--r-- | man/Makefile.am | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/man/Makefile.am b/man/Makefile.am index e241a061d..91445ab2d 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -123,13 +123,18 @@ mapped_name = `echo $*|sed 's/install/ginstall/'` # 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 |