[Xfce4-commits] <xfburn:master> Compute languages on the fly instead of using LINGUAS

David Mohr squisher at xfce.org
Wed Aug 19 02:52:02 CEST 2009


Updating branch refs/heads/master
         to 4f99468f6ec8e8fed530efb042dd68587e637990 (commit)
       from bda574bd434e5e9c98728e1ee8a7552a327373cf (commit)

commit 4f99468f6ec8e8fed530efb042dd68587e637990
Author: David Mohr <squisher at xfce.org>
Date:   Tue Aug 18 18:50:03 2009 -0600

    Compute languages on the fly instead of using LINGUAS

 autogen.sh |   11 +----------
 po/LINGUAS |    2 --
 2 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/autogen.sh b/autogen.sh
index 81ab05a..068a244 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -18,17 +18,8 @@ EOF
   exit 1
 }
 
-# verify that po/LINGUAS is present
-(test -f po/LINGUAS) >/dev/null 2>&1 || {
-  cat >&2 <<EOF
-autogen.sh: The file po/LINGUAS could not be found. Please check your snapshot
-            or try to checkout again.
-EOF
-  exit 1
-}
-
 # substitute revision and linguas
-linguas=`sed -e '/^#/d' po/LINGUAS`
+linguas=`ls po/*.po | awk 'BEGIN { FS="[./]"; ORS=" " } { print $2 }'`
 
 if [ -d .git ]; then
   revision=`git rev-parse --short HEAD 2>/dev/null`
diff --git a/po/LINGUAS b/po/LINGUAS
deleted file mode 100644
index 7d3a7c2..0000000
--- a/po/LINGUAS
+++ /dev/null
@@ -1,2 +0,0 @@
-# set of available languages (in alphabetic order)
-ar ast ca cs da de dz el en_GB es et eu fi fr gl he hu id it ja kk ko lt lv nb nl pa pl pt pt_BR ru sq sv tr uk ur ur_PK zh_CN zh_TW



More information about the Xfce4-commits mailing list