From 45ffbe9f8746224daf11a3980d69b10fc0520384 Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Sun, 18 Mar 2012 22:19:45 +0100 Subject: [PATCH] install-mans: avoid spurious failure with NetBSD make * lib/am/mans.am: After the changes introduced by previous commit v1.11-759-g368f1c4, some manpage installation recipes started to fail spuriously on NetBSD 5.1 make. Apparently, the system make there eats backslashes used to escape whitespace characters in the relevant recipes. Revert to slightly slower but safer idioms that avoid the need of such escaping. Signed-off-by: Stefano Lattarini --- lib/am/mans.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/am/mans.am b/lib/am/mans.am index b0d5335b9..b92576d63 100644 --- a/lib/am/mans.am +++ b/lib/am/mans.am @@ -36,7 +36,7 @@ if %?NOTRANS_MANS% ?!HAVE_NOTRANS? list2=''; \ ?HAVE_NOTRANS? list2='%NOTRANS_LIST%'; \ test -n "$(man%SECTION%dir)" \ - && case "$$list1$$list2" in *[^\ ]*) :;; *) false;; esac \ + && test -n "`echo $$list1$$list2`" \ || exit 0; \ echo " $(MKDIR_P) '$(DESTDIR)$(man%SECTION%dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(man%SECTION%dir)" || exit 1; \ @@ -77,7 +77,7 @@ if %?TRANS_MANS% ?!HAVE_TRANS? list2=''; \ ?HAVE_TRANS? list2='%TRANS_LIST%'; \ test -n "$(man%SECTION%dir)" \ - && case "$$list1$$list2" in *[^\ ]*) :;; *) false;; esac \ + && test -n "`echo $$list1$$list2`" \ || exit 0; \ echo " $(MKDIR_P) '$(DESTDIR)$(man%SECTION%dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(man%SECTION%dir)" || exit 1; \ -- 2.34.1