Skip to content

Commit

Permalink
🍥(new)Authors.md doc & auto-updating script added!
Browse files Browse the repository at this point in the history
  • Loading branch information
klaudiosinani committed Jun 11, 2017
1 parent 9940fac commit a6c2b89
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
5 changes: 5 additions & 0 deletions authors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## Project Authors :tada:

- Klaus Sinani (<klauscfhq@protonmail.com>)

Ordered by oldest contribution - Generated by `bin/update-authors.sh` :rocket:
21 changes: 21 additions & 0 deletions bin/update-authors.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/sh

# Updates authors.md based on git history
# Forked from @feross's https://github.com/webtorrent/webtorrent/blob/master/bin/update-authors.sh

git log --reverse --format='%aN (<%aE>)' | perl -we '
BEGIN {
%seen = (), @authors = ();
}
while (<>) {
next if $seen{$_};
$seen{$_} = push @authors, "- ", $_;
}
END {
print "## Project Authors :tada:\n\n";
print @authors, "\n";
print "Ordered by oldest contribution - Generated by `bin/update-authors.sh` :rocket:\n";
}
' > ../authors.md

0 comments on commit a6c2b89

Please sign in to comment.