From 75460e090c5bd114912a659ad73e469c08a2d60c Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 24 Feb 2007 09:26:56 +0100 Subject: [PATCH] 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". --- ChangeLog | 4 ++++ man/Makefile.am | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 \ -- 2.47.3