Using "find -maxdepth" is not portable

This commit is contained in:
Moritz Bunkus 2010-03-02 16:03:35 +01:00
parent 076aa42642
commit dc6ffac2cc

View File

@ -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)