From 102708704c8c4f0ea99775d38f8d1efecf584940 Mon Sep 17 00:00:00 2001 From: Kenan Yildirim Date: Sat, 10 Jan 2015 12:10:22 -0500 Subject: add script for updating AUTHORS file --- scripts/update-authors.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 scripts/update-authors.sh (limited to 'scripts') diff --git a/scripts/update-authors.sh b/scripts/update-authors.sh new file mode 100755 index 000000000..8708e240e --- /dev/null +++ b/scripts/update-authors.sh @@ -0,0 +1,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 \ No newline at end of file -- cgit v1.2.3