aboutsummaryrefslogtreecommitdiff
path: root/deps/npm/scripts/update-authors.sh
blob: 8708e240edfdac56bfa136845ff808e623594ac7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

git log --reverse --format='%aN <%aE>' | awk '
BEGIN {
  print "# Authors sorted by whether or not they'\''re me";
}

{
  if (all[$NF] != 1) {
    all[$NF] = 1;
    ordered[length(all)] = $0;
  }
}

END {
  for (i in ordered) {
    print ordered[i];
  }
}
' > AUTHORS