]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
install-mans: avoid spurious failure with NetBSD make
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 18 Mar 2012 21:19:45 +0000 (22:19 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 18 Mar 2012 21:19:45 +0000 (22:19 +0100)
* 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 <stefano.lattarini@gmail.com>
lib/am/mans.am

index b0d5335b924ac2cbe9089011a77c867ee5411c5a..b92576d630e98d68a00c894fe70b5eebcaaa5bb5 100644 (file)
@@ -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; \