From d471effd85668a4704baa2d12f33e125ea429eea Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 5 Nov 2007 11:05:55 +0100 Subject: Use tighter regexps when performing name substitution. * man/Makefile.am (mapped_name): Add ^ and $$ anchors. Signed-off-by: Jim Meyering --- ChangeLog | 3 +++ man/Makefile.am | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index cd7a9f478..61ee8c3b9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2007-11-05 Jim Meyering + 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 -- cgit v1.2.3-54-g00ecf