Mattiase thunari paramdused
[xfce-et.git] / checkout-po.sh
bloba85d8b9b8454a5f8e2850cdfbcf380ea501194d5
1 #!/bin/sh
3 # checkout-po.sh: checkout PO files via SVN repository.
5 # Copyright (c) 2005 Jean-Francois Wauthy <pollux@xfce.org>
6 # Copyright (c) 2005 Daichi Kawahata <daichi@xfce.org>
8 # This script is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License as
10 # published by the Free Software Foundation; version 2 of the
11 # License ONLY.
13 # This script is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details at:
17 # http://gnu.org/licenses/gpl.html
19 language="et.po"
21 packages=`cat PACKAGES`
23 if [ -z "$1" ]
24 then
25 echo "usage:"
26 echo "$0 <password>"
27 exit 1
30 root="https://peetervois:$1@svn.xfce.org/svn/"
32 for package in $packages
34 dir=${package}/trunk/po/
35 if [ ! -d ${dir} ]
36 then
37 mkdir -p $dir
39 svn co ${root}${package}/trunk/po/ $dir
40 unwanted=`find $dir | grep -v $language | grep -v "\.pot" | grep -v "\.svn" | grep -v LINGUAS | grep -v ChangeLog`
41 for a in $unwanted
43 if [ -f $a ]
44 then
45 rm -f $a
47 done
48 done
50 exit 0