Update contributors.txt using shell script (#398)

Problem: contributors.txt file is out of date

Cause: it is a tedious job to edit this file manually everytime a new person contributes to the project

Solution: create a shell script that extracts all contributors from the git repository and adds it to the contributors.txt file
This commit is contained in:
Damiaan Dufaux authored and Norman Maurer committed 2018-05-11 17:48:12 +02:00
1 parent ec79bf2b0b
commit b041136b76
3 files changed
+88 -1

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
Tomer Doron <tomerd@apple.com> <tomer.doron@gmail.com>
Tomer Doron <tomerd@apple.com>
Max Moiseev <moiseev@apple.com>
Johannes Weiß <johannesweiss@apple.com>
Adam Nemecek <adamnemecek@gmail.com>
<bas@basbroek.nl> <BasThomas@users.noreply.github.com>
<daniel_dunbar@apple.com> <daniel@zuster.org>
<johannesweiss@apple.com> <github@tux4u.de>
<norman_maurer@apple.com> <norman.maurer@googlemail.com>
<cbenfield@apple.com> <lukasaoz@gmail.com>
<cbenfield@apple.com> <lukasa@apple.com>
<helge@alwaysrightinstitute.com> <devteam@zeezide.de>
+37 -1
View File
@@ -11,11 +11,47 @@ needs to be listed here.
### Contributors
- Adam Nemecek <adamnemecek@gmail.com>
- Alex Blewitt <alex.blewitt@gmail.com>
- Andrew Bennett <635596+therealbnut@users.noreply.github.com>
- Ankit Aggarwal <ankit_aggarwal@apple.com>
- Arjun Nayini <aanayini@gmail.com>
- Bas Broek <bas@basbroek.nl>
- Ben Cohen <airspeedswift@users.noreply.github.com>
- Cory Benfield <cbenfield@apple.com>
- Damiaan Dufaux <damiaan@dpro.be>
- Daniel Dunbar <daniel_dunbar@apple.com>
- Frank Kair <frankkair@gmail.com>
- Gopal Sharma <gopal@the-sharmas.org>
- Helge Heß <helge@alwaysrightinstitute.com>
- Ian Partridge <i.partridge@uk.ibm.com>
- Jason Toffaletti <toffaletti@gmail.com>
- Johannes Weiß <johannesweiss@apple.com>
- John Connolly <connoljo2@gmail.com>
- Karim ElNaggar <karimfarid.naggar@gmail.com>
- Kevin Clark <kevin.clark@apple.com>
- Kyle Bashour <kylebshr@me.com>
- Lev Walkin <vlm@lionet.info>
- Ludovic Dewailly <me@ldewailly.com>
- Matt Eaton <agnosticdev@gmail.com>
- Max Moiseev <moiseev@apple.com>
- Moritz Lang <hi@slashmo.codes>
- Norman Maurer <norman_maurer@apple.com>
- Pushkar N Kulkarni <pushkar.nk@in.ibm.com>
- Sebastian Thiebaud <770074+SebastianThiebaud@users.noreply.github.com>
- Semen Zhydenko <simeon.zhidenko@gmail.com>
- Shaun Hubbard <shaunhubbard2013@icloud.com>
- Siemen Sikkema <siemensikkema@users.noreply.github.com>
- Stuart Hinson <stuart.hinson@gmail.com>
- Tanner <me@tanner.xyz>
- Tiago Martinho <martinho@thoughtworks.com>
- Tibor Bödecs <mail.tib@gmail.com>
- Tim <0xTim@users.noreply.github.com>
- Tim Kientzle <tkientzle@apple.com>
- Tom Doron <tomerd@apple.com>
- Tomer Doron <tomerd@apple.com>
- Wilson Ding <hello@wilsonding.com>
- sun_ <sunlubo.sun@gmail.com>
**Updating this list**
Please do not edit this file manually. It is generated using `./scripts/generate_contributors_list.sh`. If a name is misspelled or appearing multiple times: add an entry in `./.mailmap`
+39
View File
@@ -0,0 +1,39 @@
#!/bin/bash
##===----------------------------------------------------------------------===##
##
## This source file is part of the SwiftNIO open source project
##
## Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors
## Licensed under Apache License v2.0
##
## See LICENSE.txt for license information
## See CONTRIBUTORS.txt for the list of SwiftNIO project authors
##
## SPDX-License-Identifier: Apache-2.0
##
##===----------------------------------------------------------------------===##
set -eu
here="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
contributors=$(git shortlog -es | cut -f2 | sed 's/^/- /')
cat > "$here/../CONTRIBUTORS.txt" <<- EOF
For the purpose of tracking copyright, this is the list of individuals and
organizations who have contributed source code to SwiftNIO.
For employees of an organization/company where the copyright of work done
by employees of that company is held by the company itself, only the company
needs to be listed here.
## COPYRIGHT HOLDERS
- Apple Inc. (all contributors with '@apple.com')
### Contributors
$contributors
**Updating this list**
Please do not edit this file manually. It is generated using \`./scripts/generate_contributors_list.sh\`. If a name is misspelled or appearing multiple times: add an entry in \`./.mailmap\`
EOF