summaryrefslogtreecommitdiff
path: root/po/update.sh
blob: c1e5be5ad1e23e7c3735670d8657b292c3eec66a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
#
#  Script for translators not being able to run autogen.sh
#
#  Copyright (C) 2000 Free Software Foundation.
#
#  This library is free software; you can redistribute it and/or
#  modify it under the terms of the GNU General Public License as
#  published by the Free Software Foundation; either version 2 of the
#  License, or (at your option) any later version.
#
#  This script is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
#  General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this library; if not, write to the Free Software
#  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
#  Authors: Kenneth Christiansen <kenneth@gnu.org>

PACKAGE=nautilus

DEPENDS=$(which xml-i18n-toolize 2> /dev/null)

if [ "$DEPENDS" = "" -o ! -x "$DEPENDS" ] ;
   then echo "The xml-i18n-tools system is not installed or in path!"
        echo
        echo "The module $PACKAGE requires this inplimentation, which"
        echo "can be found at:"
        echo
        echo "  ftp://ftp.gnome.org/pub/GNOME/stable/xml-i18n-tools "
        echo
        echo "Please install before trying to update the translations"
        echo "again..."
        echo
        exit
fi

XMLDIR=$(which xml-i18n-toolize | sed s@/bin/xml-i18n-toolize@@)
XML_I18N_EXTRACT="$XMLDIR/share/xml-i18n-tools/xml-i18n-extract"
XML_I18N_UPDATE="$XMLDIR/share/xml-i18n-tools/xml-i18n-update"
PACKAGE=$PACKAGE XML_I18N_EXTRACT=$XML_I18N_EXTRACT \
$XML_I18N_UPDATE $1