summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2017-04-24 19:53:42 +0100
committerTim-Philipp Müller <tim@centricular.com>2017-04-24 19:53:42 +0100
commit48a5d85ebf4a0bad1c997c83100f710fe2154fbf (patch)
tree7a69acd30e56f919b4a567e455fedade4ea5f4f2
parent140d073c89f6998733653dd1d8bde86e5d46f0f7 (diff)
po.mak: download-po: some fixes
-rw-r--r--po.mak8
1 files changed, 4 insertions, 4 deletions
diff --git a/po.mak b/po.mak
index 8d073b7..ee84f1e 100644
--- a/po.mak
+++ b/po.mak
@@ -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