Translation helper scripts
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.
ths-scripts/backport

29 lines
810 B

#!/bin/bash
source "`dirname $0`/ths-variables"
function jobidfromstring()
{
local STRING;
local RET;
STRING=$1;
RET="$(echo $STRING | sed 's/^[^0-9]*//' | sed 's/[^0-9].*$//')"
echo $RET;
}
echo -e $BLUE"Running poupdate..."$ENDCOLOR
./poupdate -NS --silent trunk-kf5/$lcode/messages stable-kf5/$lcode/messages stable-kf5/templates/messages &
LASTJOB=`jobidfromstring $(jobs %%)`
JOBLIST="$LASTJOB"
./poupdate -NS --silent trunk-kf5/$lcode/docmessages stable-kf5/$lcode/docmessages stable-kf5/templates/docmessages &
LASTJOB=`jobidfromstring $(jobs %%)`
JOBLIST="$JOBLIST $LASTJOB"
for JOB in $JOBLIST ; do
wait %$JOB
done
echo -e $BLUE"Removing obsolete entries..."$ENDCOLOR
./obsolete stable-kf5/$lcode/messages
./obsolete stable-kf5/$lcode/docmessages