Commit 140d073c authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠

po.mak: download-po: run some clean-up after downloading latest files

We're only interested in updates that update the actual
translations, so ignore changes that just update the date.
parent 79d47d47
# 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`; \
if [ $num_date == $num_changed ]; then \
git checkout $f; \
fi; \
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment