From: Stefano Lattarini Date: Sun, 18 Mar 2012 21:19:45 +0000 (+0100) Subject: install-mans: avoid spurious failure with NetBSD make X-Git-Tag: v1.11.3b~3^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45ffbe9f8746224daf11a3980d69b10fc0520384;p=thirdparty%2Fautomake.git 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 --- 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; \