You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tde-common-other/makemessages

47 lines
1.0 KiB

#! /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 kde-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"