30 lines
836 B
Bash
Executable File
30 lines
836 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
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-kf6/$lcode/messages stable-kf6/$lcode/messages stable-kf6/templates/messages &
|
|
LASTJOB=$(jobidfromstring "$(jobs %%)")
|
|
JOBLIST="$LASTJOB"
|
|
./poupdate -NS --silent trunk-kf6/$lcode/docmessages stable-kf6/$lcode/docmessages stable-kf6/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-kf6/$lcode/messages
|
|
./obsolete stable-kf6/$lcode/docmessages
|