~ubuntu-branches/ubuntu/wily/sflphone/wily

« back to all changes in this revision

Viewing changes to gnome/po/update_translation.sh

  • Committer: Package Import Robot
  • Author(s): Mark Purcell
  • Date: 2014-01-28 18:23:36 UTC
  • mfrom: (1.1.11)
  • mto: This revision was merged to the branch mainline in revision 24.
  • Revision ID: package-import@ubuntu.com-20140128182336-3xenud1kbnwmf3mz
* New upstream release 
  - Fixes "New Upstream Release" (Closes: #735846)
  - Fixes "Ringtone does not stop" (Closes: #727164)
  - Fixes "[sflphone-kde] crash on startup" (Closes: #718178)
  - Fixes "sflphone GUI crashes when call is hung up" (Closes: #736583)
* Build-Depends: ensure GnuTLS 2.6
  - libucommon-dev (>= 6.0.7-1.1), libccrtp-dev (>= 2.0.6-3)
  - Fixes "FTBFS Build-Depends libgnutls{26,28}-dev" (Closes: #722040)
* Fix "boost 1.49 is going away" unversioned Build-Depends: (Closes: #736746)
* Add Build-Depends: libsndfile-dev, nepomuk-core-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/bash
2
 
#
3
 
#  Copyright (C) 2004-2012 Savoir-Faire Linux Inc.
4
 
#
5
 
#  Author: Alexandre Savard <alexandre.savard@savoirfairelinux.com>
6
 
#
7
 
#  This program is free software; you can redistribute it and/or modify
8
 
#  it under the terms of the GNU General Public License as published by
9
 
#  the Free Software Foundation; either version 3 of the License, or
10
 
#  (at your option) any later version.
11
 
#
12
 
#  This program is distributed in the hope that it will be useful,
13
 
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 
#  GNU General Public License for more details.
16
 
#
17
 
#  You should have received a copy of the GNU General Public License
18
 
#  along with this program; if not, write to the Free Software
19
 
#  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20
 
#
21
 
#  Additional permission under GNU GPL version 3 section 7:
22
 
#
23
 
#  If you modify this program, or any covered work, by linking or
24
 
#  combining it with the OpenSSL project's OpenSSL library (or a
25
 
#  modified version of that library), containing parts covered by the
26
 
#  terms of the OpenSSL or SSLeay licenses, Savoir-Faire Linux Inc.
27
 
#  grants you additional permission to convey the resulting work.
28
 
#  Corresponding Source for a non-source form of such a combination
29
 
#  shall include the source code for the parts of OpenSSL used as well
30
 
#  as that of the covered work.
31
 
#
32
 
 
33
 
# Script to update sflphone translation
34
 
 
35
 
LAUNCHPAD_PO_ARCHIVE=launchpad-export.tar.gz
36
 
 
37
 
LAUNCHPAD_DIR=launchpad-import/sflphone
38
 
LAUNCHPAD_PATH=$PWD/$LAUNCHPAD_DIR
39
 
 
40
 
SFL_PO_DIR=.
41
 
SFL_PO_PATH=$PWD/$SFL_PO_DIR
42
 
 
43
 
if [ ! -e ${LAUNCHPAD_PO_ARCHIVE} ]; then
44
 
    echo "Error, "$LAUNCHPAD_PO_ARCHIVE" is required in current directory"
45
 
    exit
46
 
fi
47
 
 
48
 
mkdir -p launchpad-import
49
 
 
50
 
tar -zxvf $LAUNCHPAD_PO_ARCHIVE -C launchpad-import
51
 
 
52
 
if [ ! -d ${LAUNCHPAD_PATH} ]; then
53
 
    echo "Error, directory "$LAUNCHPAD_PATH" does not exist"
54
 
    exit
55
 
fi
56
 
 
57
 
pushd $LAUNCHPAD_PATH
58
 
 
59
 
for filename in $(ls)
60
 
do
61
 
    splitname=$(echo $filename | cut -d- -f2)
62
 
 
63
 
    if [ -e $SFL_PO_PATH/$splitname ]; then
64
 
        msgmerge --update $filename $SFL_PO_PATH/$splitname
65
 
    else
66
 
        cp $filename $SFL_PO_PATH/$splitname
67
 
    fi
68
 
done
69
 
 
70
 
popd
71
 
 
72
 
# Cleanup once translation are updated
73
 
rm -rf launchpad-import
74
 
rm -rf sflphone
75
 
rm -rf sflphone-manual
76
 
rm -rf sflphone_usermanual