mirror of
https://github.com/godotengine/godot-docs-l10n.git
synced 2026-01-04 10:09:56 +03:00
20 lines
467 B
Bash
20 lines
467 B
Bash
#!/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
|
|
|
|
rm -f authors.txt langs.txt
|
|
|
|
for file in weblate/*.po; do
|
|
authors=$(git log $commit..HEAD --date=format:"%Y" --format="%aN <%aE>, %ad." $file | grep -v 'anonymous' | sort -u)
|
|
if [ ! -z "$authors" ]; then
|
|
echo "$file" >> langs.txt
|
|
echo -e "\n* $file:\n" >> authors.txt
|
|
echo "$authors" >> authors.txt
|
|
fi
|
|
done
|