blob: 748bd654be9ca7cb9ed405790fc748dc8346e566 (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
#!/bin/bash
PACKAGES="aquamarine beryl-core beryl-plugins beryl-settings beryl-manager emerald"
OPATH="$HOME/l10n/trunk/l10n"
IPATH="$PWD"
DOSVN="y"
until [ "x$1" == "x" ]
do
case $1 in
"-o")
OPATH="$2"
shift
;;
"-i")
IPATH="$2"
shift
;;
"-x")
DOSVN="n"
;;
*)
echo ""
if [ "$1" != "-?" ]
then
echo "update-l10n-stats: unrecognized option $1"
fi
echo "usage: update-l10n-stats [-o output_path] [-i input_path] [-x]"
echo " -o: set the output path for the l10n folder,"
echo " for example -o /tmp/l10n/, defaults to"
echo " \$HOME/l10n"
echo " -i: set the input path, the location of the"
echo " checked out working copy of beryl,"
echo " defaults to \$PWD"
echo " -x: skip the call to svn up in the input path"
echo " -?: this help screen"
echo ""
exit 0
;;
esac
shift
done
if [ "$DOSVN" == "y" ]
then
svn up $IPATH
fi
mkdir -p $OPATH
for PACKAGE in $PACKAGES
do
echo "Updating $PACKAGE"
mkdir -p $OPATH/templates/messages/beryl/
if ["$PACKAGE" != "aquamarine" ]
then
pushd $IPATH/$PACKAGE/po/
intltool-update -p
popd
fi
cp $IPATH/$PACKAGE/po/$PACKAGE.pot $OPATH/templates/messages/beryl/$PACKAGE.pot
for LNG in $IPATH/$PACKAGE/po/*.po
do
LDN="`basename $LNG | sed -e 's/\.po\$//'`"
mkdir -p $OPATH/$LDN/messages/beryl/
cp $LNG $OPATH/$LDN/messages/beryl/$PACKAGE.po
done
done
|