From: Jim Meyering Date: Sat, 24 Feb 2007 08:26:56 +0000 (+0100) Subject: Avoid a shell syntax error, when building with an inadequate Perl. X-Git-Tag: COREUTILS-6_8~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75460e090c5bd114912a659ad73e469c08a2d60c;p=thirdparty%2Fcoreutils.git Avoid a shell syntax error, when building with an inadequate Perl. * man/Makefile.am (.x.1): Add quotes around $(PERL) in case, since it can expand to "/.../missing perl". --- diff --git a/ChangeLog b/ChangeLog index 07249f0895..d9163e88ad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2007-02-24 Jim Meyering + Avoid a shell syntax error, when building with an inadequate Perl. + * man/Makefile.am (.x.1): Add quotes around $(PERL) in case, since + it can expand to "/.../missing perl". + * man/Makefile.am (.x.1): Warn when unable to update a man page. Suggestion from Bruno Haible. diff --git a/man/Makefile.am b/man/Makefile.am index 17b3415ba5..32df9d1766 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -153,7 +153,7 @@ mapped_name = `echo $*|sed 's/install/ginstall/; s/test/[/'` # That is necessary to avoid failures for programs that are also shell built-in # functions like echo, false, printf, pwd. .x.1: - @case $(PERL) in \ + @case '$(PERL)' in \ *"/missing "*) \ echo 'WARNING: cannot update man page $@ since perl is missing' \ 'or inadequate' 1>&2 \