Created
September 14, 2017 07:48
-
-
Save sikmir/f6903096a4a1acf511d23b6004dbee15 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
WEBLATE="http://hosted.weblate.org" | |
PROJECT="OpenOrienteering" | |
COMPONENT="mapper" | |
wget -qO- "$WEBLATE/exports/stats/$PROJECT/$COMPONENT/?format=csv" | \ | |
awk -F',' 'NR == 1 {next} {print $2,$3-$4}' | \ | |
while read line; do \ | |
wget -qO- "$WEBLATE/download/$PROJECT/$COMPONENT/${line%% *}" | \ | |
grep -c 'unfinished' | sed -e "s/^/$line /"; done | \ | |
awk '$2 != $3 {print}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment