i18n-sync.sh 360 B

123456789101112131415161718
  1. #!/bin/sh
  2. [ -d ./build ] || {
  3. echo "Execute as ./build/i18n-sync.sh" >&2
  4. exit 1
  5. }
  6. ./build/mkbasepot.sh
  7. find . -name '*.pot' -and -not -name base.pot -and -not -name rrdtool.pot | \
  8. while read path; do
  9. dir="${path%/po/templates/*}"
  10. echo -n "Updating ${path#./} ... "
  11. ./build/i18n-scan.pl "$dir" > "$path"
  12. echo "done"
  13. done
  14. ./build/i18n-update.pl