diff options
author | Jim Meyering <meyering@redhat.com> | 2007-11-05 11:05:55 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2007-11-05 11:14:05 +0100 |
commit | d471effd85668a4704baa2d12f33e125ea429eea (patch) | |
tree | c99ecd4b899483e8c8314b6c25d4c23aead78954 | |
parent | 25e3dd5365aaab8f470e1c40b1559f3fb4ae68e4 (diff) | |
download | coreutils-d471effd85668a4704baa2d12f33e125ea429eea.tar.xz |
Use tighter regexps when performing name substitution.
* man/Makefile.am (mapped_name): Add ^ and $$ anchors.
Signed-off-by: Jim Meyering <meyering@redhat.com>
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | man/Makefile.am | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -1,5 +1,8 @@ 2007-11-05 Jim Meyering <meyering@redhat.com> + Use tighter regexps when performing name substitution. + * man/Makefile.am (mapped_name): Add ^ and $$ anchors. + Don't use GNU-sed-specific \< \> operators. * configure.ac (MAN): Transform ginstall.1 to install.1 using a loop, rather than sed with \<...\>. diff --git a/man/Makefile.am b/man/Makefile.am index a7b96d16e..8d1f7f7c9 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -136,7 +136,7 @@ SUFFIXES = .x .1 # `install' when creating install.1. # Similarly, ensure that it uses the ../src/[ binary to create test.1. t = $*.td -mapped_name = `echo $*|sed 's/install/ginstall/; s/test/[/'` +mapped_name = `echo $*|sed 's/^install$$/ginstall/; s/^test$$/[/'` # 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 |