aboutsummaryrefslogtreecommitdiffstats
path: root/docs/mcc-help/update.sh
blob: ef7b60f7569b185cf7314c9372bd943b6b1aaa8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
POFILE=$1

if [[ $POFILE == "" ]]; then
  for i in *.po
  do
    echo -n $i": "
    msgmerge --backup=none --update $i mcc-help.pot && \
    msgfmt -o /dev/null --statistics --check $i
  done
else
  echo -n $1".po: "
  msgmerge --backup=none --update $1.po mcc-help.pot && \
  msgfmt -o /dev/null --statistics --check $1.po
fi