i18n-sync.sh 403 B

12345678910111213141516171819202122232425
  1. #!/bin/sh
  2. for m in */*/Makefile; do
  3. if grep -qE '^PO *=' $m; then
  4. p="${m%/Makefile}"
  5. t="$(sed -ne 's/^PO *= *//p' $m)"
  6. case "$t" in
  7. *\ *)
  8. echo "WARNING: Cannot handle $p" >&2
  9. continue
  10. ;;
  11. *base*)
  12. continue
  13. ;;
  14. esac
  15. if [ -f "po/templates/$t.pot" ]; then
  16. ./build/i18n-scan.pl "$p" > "po/templates/$t.pot"
  17. fi
  18. fi
  19. done
  20. ./build/mkbasepot.sh
  21. ./build/i18n-update.pl po