Sync repo
[xfce-et.git] / commit-po.sh
blob985a33438cd421773ff28361e84ae1bd6d55d5c5
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'`
23 files2=`find . -name "LINGUAS" | sed 's!\./!!g'`
24 files3=`find . -name "ChangeLog" | sed 's!\./!!g'`
27 if [ -z "$1" ]
28 then
29 echo "usage:"
30 echo "$0 <message>"
31 exit 1
34 if [ -n "$2" ]
35 then
36 echo "too many message arguments"
37 exit 1
40 count_spaces=`echo "$1" | grep -c " "`
42 if [ $count_spaces -eq 0 ]
43 then
44 echo "no spaces in message"
45 exit 1
48 #exit 2
50 curdir=$PWD
52 echo "#!/bin/sh" > tempfile.sh
54 for file in $files1 $files2 $files3
56 cmd="svn ci -m \"$1\" $file 2>&1"
57 echo ${cmd} >> tempfile.sh
58 done
60 sh tempfile.sh
61 rm -f tempfile.sh
63 exit 0