From: Petter Reinholdtsen Date: Wed, 28 Aug 2013 08:44:26 +0000 (+0200) Subject: Avoid having to edit stats.txt all the time. X-Git-Tag: edition-2015-10-10~696 X-Git-Url: https://pere.pagekite.me/gitweb/text-free-culture-lessig.git/commitdiff_plain/57b571245c3be1d8bc1a04ce24644d2f18ce8201 Avoid having to edit stats.txt all the time. --- diff --git a/Makefile b/Makefile index 878d03b..de9d67b 100644 --- a/Makefile +++ b/Makefile @@ -130,7 +130,9 @@ update-stats: freeculture.nb.po lint.nb ( \ printf "%s " $$(date +"%Y-%m-%dT%H%M") ; \ msgfmt -o /dev/null --statistics freeculture.nb.po 2>&1 \ - ) | tee -a stats.txt + ) \ + | sed -e 's/translated messages/oversatte meldinger/' -e 's/fuzzy translations/antatte oversettelser/' -e 's/untranslated messages/oversatte meldinger/' \ + | tee -a stats.txt progress.png: stats.txt progress.gnuplot awk '{print $$1, $$2, $$5, $$8}' < stats.txt > stats.csv gnuplot progress.gnuplot