Add script to list authors from Weblate commits

This commit is contained in:
Rémi Verschelde
2018-04-19 09:00:00 +02:00
parent b0939987d2
commit 39bb3a10c9
3 changed files with 14 additions and 1 deletions

1
.gitignore vendored
View File

@@ -1 +1,2 @@
.doctrees
*.mo

13
list-authors.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
if [ -z $1 ]; then
echo "Pass a commit hash as argument to list authors between that commit and HEAD."
exit 1
fi
commit=$1
for file in weblate/*.po; do
echo -e "\n* $file:\n"
git log $commit..HEAD --date=format:"%Y" --format="%aN <%aE>, %ad." $file | grep -v 'anonymous' | sort -u
done

View File

@@ -51,7 +51,6 @@ while [ $# -gt 0 ]; do
;;
--add-langs|-l)
add_langs=true
make_sphinx_po_symlinks=true
;;
*)
echo "Invalid argument."