summaryrefslogtreecommitdiffstats
path: root/makemessages
blob: 662b46dab8ee3b6abc3373779ebf369382f12663 (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
#! /bin/bash
# kate: space-indent on; indent-width 2; replace-tabs on;

# Note to developers:
#  there are not many comments in this code to avoid to slow down the code
#  So please look also in the svn log to have comments about the code

umask 022

export SVNROOT="svn+ssh://scripty@svn.kde.org/home/kde"
export PATH=~/bin:$PATH

#export VERBOSE=1
#export VERBOSE1=yes
export TIMING1=yes
export SVNQUIETFLAG=-q

test -z "$VERBOSE" || VERBOSE1=yes
test -z "$VERBOSE" || SVNQUIETFLAG=
test -z "$TIMING" || TIMING1=yes

cd $HOME/prod
export BASEDIR=$PWD

export STARTTIME=`date +%s`

# transmod: path of the corresponding tde-i18n or l10n module

export transmod="trunk/l10n"
svn update -q $transmod/scripts
$transmod/scripts/update_translations

export transmod="branches/stable/l10n" 
svn update -q $transmod/scripts
$transmod/scripts/update_translations 2>&1 | uniq

if test $(($(date +"%j") % 2)) = 1; then 
   cd $BASEDIR/trunk/l10n
else
   cd $BASEDIR/branches/stable/l10n
fi

svn update -q
./scripts/check_po_files
svn commit -m "check_po_files"