[Xfce4-commits] <gigolo:master> Fix command to determine the available languages to fix the build with autotools

Enrico Tröger noreply at xfce.org
Wed Oct 14 20:24:01 CEST 2009


Updating branch refs/heads/master
         to 74f0b02503c2b52b40b5c2dc51f9d70dd1fcc9c7 (commit)
       from 323453c2e311806687055a60032ca5bb531ebf0f (commit)

commit 74f0b02503c2b52b40b5c2dc51f9d70dd1fcc9c7
Author: Enrico Tröger <enrico at xfce.org>
Date:   Wed Oct 14 20:22:58 2009 +0200

    Fix command to determine the available languages to fix the build with autotools

 configure.ac |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index acac32e..1711078 100644
--- a/configure.ac
+++ b/configure.ac
@@ -35,7 +35,10 @@ GETTEXT_PACKAGE=gigolo
 AC_SUBST(GETTEXT_PACKAGE)
 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Gettext package.])
 
-ALL_LINGUAS="`ls po/*.po | awk 'BEGIN { FS="[./]"; ORS=" " } { print $2 }'`"
+if [ ! "$conf_dir" ]; then
+	conf_dir="."
+fi
+ALL_LINGUAS=`cd "$conf_dir/po" 2>/dev/null && ls *.po 2>/dev/null | $AWK 'BEGIN { FS="."; ORS=" " } { print $1 }'`
 
 AM_GLIB_GNU_GETTEXT
 # workaround for intltool bug (http://bugzilla.gnome.org/show_bug.cgi?id=490845)



More information about the Xfce4-commits mailing list