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.

backport 810B

1234567891011121314151617181920212223242526272829
  1. #!/bin/bash
  2. source "`dirname $0`/ths-variables"
  3. function jobidfromstring()
  4. {
  5. local STRING;
  6. local RET;
  7. STRING=$1;
  8. RET="$(echo $STRING | sed 's/^[^0-9]*//' | sed 's/[^0-9].*$//')"
  9. echo $RET;
  10. }
  11. echo -e $BLUE"Running poupdate..."$ENDCOLOR
  12. ./poupdate -NS --silent trunk-kf5/$lcode/messages stable-kf5/$lcode/messages stable-kf5/templates/messages &
  13. LASTJOB=`jobidfromstring $(jobs %%)`
  14. JOBLIST="$LASTJOB"
  15. ./poupdate -NS --silent trunk-kf5/$lcode/docmessages stable-kf5/$lcode/docmessages stable-kf5/templates/docmessages &
  16. LASTJOB=`jobidfromstring $(jobs %%)`
  17. JOBLIST="$JOBLIST $LASTJOB"
  18. for JOB in $JOBLIST ; do
  19. wait %$JOB
  20. done
  21. echo -e $BLUE"Removing obsolete entries..."$ENDCOLOR
  22. ./obsolete stable-kf5/$lcode/messages
  23. ./obsolete stable-kf5/$lcode/docmessages