From: Jim Meyering Date: Thu, 6 Nov 2003 08:03:27 +0000 (+0000) Subject: (check-programs-vs-x): X-Git-Tag: v5.1.0~223 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bc557bf8812a05ccd22343ffb7c9ce09d010ca9;p=thirdparty%2Fcoreutils.git (check-programs-vs-x): Work even if $(programs) contains '$'. Work even if 'missing=1' in environment. Don't report an error simply because $(programs) outputs nothing. --- diff --git a/man/Makefile.am b/man/Makefile.am index a367c3ddc5..f634a8f0c1 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -160,10 +160,11 @@ programs = \ .PHONY: check-programs-vs-x check-programs-vs-x: - test "$(programs)" && : || exit 1 - for p in `$(programs)`; do \ + status=0; \ + for p in dummy `$(programs)`; do \ + test $$p = dummy && continue; \ test $$p = ginstall && p=install || : ; \ test -f $(srcdir)/$$p.x \ - || { echo missing $$p.x 1>&2; missing=1; }; \ + || { echo missing $$p.x 1>&2; status=1; }; \ done; \ - test "$$missing" = 1 && exit 1 || : + exit $$status