Indrek Ardeli muudatused
[xfce-et.git] / commit-po.sh
blob0d3c64cb98accef6ee316d5bfd02e5f7c4506465
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`
22 files1=`find . -name ${language} | sed 's!\./!!g'`
24 #if [ -z "$1" ]
25 #then
26 # echo "usage:"
27 # echo "$0 <password>"
28 # exit 1
29 #fi
31 #root="https://peetervois:$1@svn.xfce.org/svn/"
33 for file in $files1
35 result=`svn ci -m \"$1\" $file 2>&1`
36 notincontrol=`echo "$result" | grep "is not under version control"`
37 if [ -z "$notincontrol" ]
38 then
39 echo "$result"
40 else
41 echo "-- not in version control error"
42 echo "-- adding into control"
43 svn add $file
44 echo "-- trying to checkin again"
45 svn ci -m "first version" $file
47 done
49 exit 0