From dc6ffac2cc56b9367e58fa65f8eb19ad221a51a9 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 2 Mar 2010 16:03:35 +0100 Subject: [PATCH] Using "find -maxdepth" is not portable --- ac/guide_translations.m4 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ac/guide_translations.m4 b/ac/guide_translations.m4 index 43a10e471..2b84d8e94 100644 --- a/ac/guide_translations.m4 +++ b/ac/guide_translations.m4 @@ -1,5 +1,8 @@ AC_MSG_CHECKING(the mmg guide translation languages to install) -GUIDE_TRANSLATIONS="`find $srcdir/doc/guide -maxdepth 1 -type d -printf '%f\n' | sed -e 1d | tr '\n' ' '`" +GUIDE_TRANSLATIONS="" +for entry in $srcdir/doc/guide/* ; do + test -d "$entry" && GUIDE_TRANSLATIONS="$GUIDE_TRANSLATIONS ${entry##*/}" +done AC_MSG_RESULT($GUIDE_TRANSLATIONS) AC_SUBST(GUIDE_TRANSLATIONS)