scripts: two scripts to determine copyright holder of files
This commit is contained in:
6
scripts/copyright-file
Executable file
6
scripts/copyright-file
Executable 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
|
Reference in New Issue
Block a user