diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2017-04-24 19:53:42 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2017-04-24 19:53:42 +0100 |
commit | 48a5d85ebf4a0bad1c997c83100f710fe2154fbf (patch) | |
tree | 7a69acd30e56f919b4a567e455fedade4ea5f4f2 | |
parent | 140d073c89f6998733653dd1d8bde86e5d46f0f7 (diff) |
po.mak: download-po: some fixes
-rw-r--r-- | po.mak | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,11 +1,11 @@ # rule to download the latest .po files download-po: $(top_srcdir)/common/download-translations $(top_srcdir)/common/download-translations $(PACKAGE) - for f in *.po; do \ - num_changed=`git diff $f | grep -e '^[+-][^+-]' | wc -l`; \ - num_date=`git diff $f | grep -e '^[+-][^+-]' | grep POT-Creation-Date | wc -l`; \ + for f in po/*.po; do \ + num_changed=`git diff $$f | grep -e '^[+-][^+-]' | wc -l`; \ + num_date=`git diff $$f | grep -e '^[+-][^+-]' | grep POT-Creation-Date | wc -l`; \ if [ $num_date == $num_changed ]; then \ - git checkout $f; \ + git checkout $$f; \ fi; \ done |