2023-02-25 16:27:22 +00:00
|
|
|
#!/bin/bash -e
|
2010-09-08 18:14:27 +01:00
|
|
|
|
2023-02-25 16:27:22 +00:00
|
|
|
source "$(dirname "$0")/ths-variables"
|
2010-09-08 18:14:27 +01:00
|
|
|
|
2010-09-08 18:36:08 +01:00
|
|
|
function jobidfromstring()
|
|
|
|
{
|
|
|
|
local STRING;
|
|
|
|
local RET;
|
2010-09-08 18:14:27 +01:00
|
|
|
|
2010-09-08 18:36:08 +01:00
|
|
|
STRING=$1;
|
2023-02-25 16:27:22 +00:00
|
|
|
RET="$(echo "$STRING" | sed 's/^[^0-9]*//' | sed 's/[^0-9].*$//')"
|
2010-09-08 18:36:08 +01:00
|
|
|
|
2023-02-25 16:27:22 +00:00
|
|
|
echo "$RET";
|
2010-09-08 18:36:08 +01:00
|
|
|
}
|
|
|
|
|
2023-02-25 16:27:22 +00:00
|
|
|
echo -e "${BLUE}Running poupdate...${ENDCOLOR}"
|
2024-01-18 23:37:49 +00:00
|
|
|
./poupdate -NS --silent trunk-kf6/$lcode/messages stable-kf6/$lcode/messages stable-kf6/templates/messages &
|
2023-02-25 16:27:22 +00:00
|
|
|
LASTJOB=$(jobidfromstring "$(jobs %%)")
|
2010-09-08 18:36:08 +01:00
|
|
|
JOBLIST="$LASTJOB"
|
2024-01-18 23:37:49 +00:00
|
|
|
./poupdate -NS --silent trunk-kf6/$lcode/docmessages stable-kf6/$lcode/docmessages stable-kf6/templates/docmessages &
|
2023-02-25 16:27:22 +00:00
|
|
|
LASTJOB=$(jobidfromstring "$(jobs %%)")
|
2010-09-08 18:36:08 +01:00
|
|
|
JOBLIST="$JOBLIST $LASTJOB"
|
|
|
|
|
|
|
|
for JOB in $JOBLIST ; do
|
2023-02-25 16:27:22 +00:00
|
|
|
wait %"$JOB"
|
2010-09-08 18:36:08 +01:00
|
|
|
done
|
2023-02-25 16:27:22 +00:00
|
|
|
echo -e "${BLUE}Removing obsolete entries...${ENDCOLOR}"
|
2024-01-18 23:37:49 +00:00
|
|
|
./obsolete stable-kf6/$lcode/messages
|
|
|
|
./obsolete stable-kf6/$lcode/docmessages
|