4 # Don't include files where the only things which have changed are
5 # the creation date, the version number, the revision date,
6 # comment lines, or diff file information.
7 for f in `git diff --cached --name-only`; do
11 # It's ok if the grep fails
13 changed=$(git diff --cached "$f" \
14 | egrep -v "(POT-Creation-Date|Project-Id-Version|PO-Revision-Date|Last-Translator|Language-Team):" \
15 | egrep -c "^([-+][^-+#])")
17 if [ $changed -eq 0 ]; then
26 while getopts nh OPT; do
36 if [ "$WRAP" -eq 0 ]; then
46 msgmerge $ARGS --previous --output ja-new.po ja.po ${category}.pot
53 git reset HEAD -- po4a/