1
0

scripts: two scripts to determine copyright holder of files

This commit is contained in:
Wesley W. Terpstra
2016-11-27 15:36:02 -08:00
parent 4146f6a792
commit 8510d9e697
5 changed files with 268 additions and 0 deletions

6
scripts/copyright-file Executable file
View File

@ -0,0 +1,6 @@
#! /bin/sh
d=$(dirname $0)
for i in "$@"; do
if [ $# -gt 1 ]; then echo "$i:"; fi
git blame --date="format:%Y%m%d" -M -C -C -C "$i" | sed 's/[^(]*(\([^0-46-9]*\) \([0-9]*\).*/\2 \1/' | $d/authors | sort | uniq -c | sort -rn
done