stackalytics/scripts/grab-mailmap.sh
2013-06-22 15:42:32 +04:00

9 lines
306 B
Bash
Executable File

#!/bin/bash
grep -v '^#' grizzly-with-libs | \
while read project; do cat ~/Work/metric-root/$project/.mailmap; done | \
grep -v '^#' | sed 's/^[^<]*<\([^>]*\)>/\1/' | \
grep '<.*>' | sed -e 's/[<>]/ /g' | \
awk '{if ($3 != "") { print $3" "$1 } else {print $2" "$1}}' | \
sort | uniq > aliases