~ubuntu-sdk-team/ubuntu-ui-toolkit/saucy

515.2.2 by tpeeters
scripts
1
#!/bin/sh
2
#
3
# Copyright 2012 Canonical Ltd.
4
#
5
# This program is free software; you can redistribute it and/or modify
6
# it under the terms of the GNU Lesser General Public License as published by
7
# the Free Software Foundation; version 3.
8
#
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
# GNU Lesser General Public License for more details.
13
# 
14
# You should have received a copy of the GNU Lesser General Public License
15
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
16
#
17
515.2.9 by tpeeters
put .mo files in subdirectory
18
BUILDDIR=.
19
DOMAIN=ubuntu-ui-toolkit
20
515.2.2 by tpeeters
scripts
21
for f in `find $TARGET -type f -name "*.po"`
22
    do
515.2.9 by tpeeters
put .mo files in subdirectory
23
        LANG=${f%.*}
515.2.2 by tpeeters
scripts
24
        EXTENSION=${f#*.}
515.2.9 by tpeeters
put .mo files in subdirectory
25
        mkdir -p $BUILDDIR/locale/$LANG/LC_MESSAGES
26
        msgfmt $f -o $BUILDDIR/locale/$LANG/LC_MESSAGES/$DOMAIN.mo
515.2.2 by tpeeters
scripts
27
    done