Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Meego:Netbook
moblin-panel-people
moblin-panel-people-autogen-linguas.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File moblin-panel-people-autogen-linguas.patch of Package moblin-panel-people
From aded2dfb9b46f96ffb6a99ccaaf831e209318cfa Mon Sep 17 00:00:00 2001 From: Rob Bradford <rob@linux.intel.com> Date: Wed, 11 Nov 2009 17:37:26 +0000 Subject: [PATCH] build: Switch to dynamically generated LINGUAS --- configure.ac | 2 ++ m4/as-linguas.m4 | 24 ++++++++++++++++++++++++ po/LINGUAS | 12 ------------ 3 files changed, 26 insertions(+), 12 deletions(-) create mode 100644 m4/as-linguas.m4 delete mode 100644 po/LINGUAS diff --git a/configure.ac b/configure.ac index 04eb803..f4ac8db 100644 --- a/configure.ac +++ b/configure.ac @@ -1,9 +1,11 @@ AC_PREREQ(2.53) AC_INIT(moblin-panel-people, 0.0.10) AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) +AC_CONFIG_MACRO_DIR([m4]) AM_CONFIG_HEADER(config.h) AC_CANONICAL_HOST +AS_ALL_LINGUAS IT_PROG_INTLTOOL([0.35.0]) GETTEXT_PACKAGE=moblin-panel-people diff --git a/m4/as-linguas.m4 b/m4/as-linguas.m4 new file mode 100644 index 0000000..92b28f7 --- /dev/null +++ b/m4/as-linguas.m4 @@ -0,0 +1,24 @@ +# Set ALL_ALL_LINGUAS based on the .po files present. Optional argument is the +# name of the po directory. $podir/LINGUAS.ignore can be used to ignore a +# subset of the po files. + +AC_DEFUN([AS_ALL_LINGUAS], +[ + AC_MSG_CHECKING([for linguas]) + podir="m4_default([$1],[$srcdir/po])" + linguas=`cd $podir && ls *.po 2>/dev/null | awk 'BEGIN { FS="."; ORS=" " } { print $[]1 }'` + if test -f "$podir/LINGUAS.ignore"; then + ALL_LINGUAS=""; + ignore_linguas=`sed -n -e 's/^\s\+\|\s\+$//g' -e '/^#/b' -e '/\S/!b' \ + -e 's/\s\+/\n/g' -e p "$podir/LINGUAS.ignore"`; + for lang in $linguas; do + if ! echo "$ignore_linguas" | grep -q "^${lang}$"; then + ALL_LINGUAS="$ALL_LINGUAS $lang"; + fi; + done; + else + ALL_LINGUAS="$linguas"; + fi; + AC_SUBST([ALL_LINGUAS]) + AC_MSG_RESULT($ALL_LINGUAS) +]) diff --git a/po/LINGUAS b/po/LINGUAS deleted file mode 100644 index c00a4fe..0000000 --- a/po/LINGUAS +++ /dev/null @@ -1,12 +0,0 @@ -# please keep this list sorted alphabetically -# -de -es -fi -fr -ja -ko -pt_BR -sv -zh_CN -zh_TW -- 1.6.0.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor