Add sys/pie

This commit is contained in:
pancake 2016-04-04 12:16:06 +02:00
parent d0ddc1a226
commit cbe598e3a2
2 changed files with 25 additions and 1 deletions

View File

@ -1,7 +1,7 @@
-include config-user.mk
include global.mk
PREVIOUS_RELEASE=0.10.0
PREVIOUS_RELEASE=0.10.1
R2R=radare2-regressions
R2R_URL=$(shell doc/repo REGRESSIONS)
@ -345,6 +345,9 @@ quality:
menu nconfig:
./sys/menu.sh || true
pie:
sys/pie.sh ${PREVIOUS_RELEASE}
include ${MKPLUGINS}
.PHONY: all clean distclean mrproper install symstall uninstall deinstall strip

21
sys/pie.sh Executable file
View File

@ -0,0 +1,21 @@
#!/bin/sh
F="$1"
if [ -z "${F}" ]; then
echo "Usage: sys/pie.sh [last-release-tag]"
exit 1
fi
git log $F..@ > .ch.txt
WHO=`cat .ch.txt |grep ^Author|sort -u | cut -d '<' -f 1 | cut -d ':' -f 2 | cut -c 2- |sed -e 's, ,_,g' | sed -e 's,_$,,'`
for a in ${WHO} ; do
USER=`echo $a | sed -e 's,_, ,g'`
CNTR=`grep -re "${USER}" .ch.txt | wc -l |awk '{print $1}'`
echo "$CNTR\t$USER"
done
rm -f .ch.txt