diff --git a/AUTHORS.md b/AUTHORS.md new file mode 100644 index 0000000..94ea8fb --- /dev/null +++ b/AUTHORS.md @@ -0,0 +1,30 @@ +# Authors + +#### Ordered by first contribution. + +- Feross Aboukhadijeh +- Mathias Buus +- thermatk +- fisch0920 +- Aliaksei Sapach +- John Hiesey +- hicom150 +- Theadd +- Astro +- Anthony MOI +- Max Ogden +- Sidd Sridharan +- Nick Rafter +- zckevin +- Michael Williams +- Garret Buell +- Linus Unnebäck +- Aram Drevekenin +- Gustavo Rodrigues +- Alex +- Harsh Vakharia +- Yoann Ciabaud +- Diego Rodríguez Baquero +- Autarc + +#### Generated by bin/update-authors.sh. diff --git a/bin/update-authors.sh b/bin/update-authors.sh new file mode 100755 index 0000000..c7744a5 --- /dev/null +++ b/bin/update-authors.sh @@ -0,0 +1,21 @@ +#!/bin/sh +# Update AUTHORS.md based on git history. + +git log --reverse --format='%aN <%aE>' | perl -we ' +BEGIN { + %seen = (), @authors = (); +} +while (<>) { + next if $seen{$_}; + next if //; + next if //; + next if //; + $seen{$_} = push @authors, "- ", $_; +} +END { + print "# Authors\n\n"; + print "#### Ordered by first contribution.\n\n"; + print @authors, "\n"; + print "#### Generated by bin/update-authors.sh.\n"; +} +' > AUTHORS.md diff --git a/package.json b/package.json index c44b857..d898fd0 100644 --- a/package.json +++ b/package.json @@ -64,6 +64,7 @@ "url": "git://github.com/feross/bittorrent-tracker.git" }, "scripts": { + "update-authors": "./bin/update-authors.sh", "test": "standard && tape test/*.js" } }