From 5d2c1ceb6361d22ce376070e7a712fc7c1842bb6 Mon Sep 17 00:00:00 2001 From: Cory Benfield Date: Thu, 17 May 2018 12:07:04 +0100 Subject: [PATCH] Add contributors file --- .mailmap | 3 +++ CONTRIBUTORS.txt | 6 +++-- scripts/generate_contributors_list.sh | 39 +++++++++++++++++++++++++++ 3 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 .mailmap create mode 100755 scripts/generate_contributors_list.sh diff --git a/.mailmap b/.mailmap new file mode 100644 index 00000000..22e0d3bd --- /dev/null +++ b/.mailmap @@ -0,0 +1,3 @@ +Johannes Weiß + + diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index 4676e7dd..dba9238e 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -13,5 +13,7 @@ needs to be listed here. - Cory Benfield - Johannes Weiß -- Norman Maurer -- Tom Doron + +**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` diff --git a/scripts/generate_contributors_list.sh b/scripts/generate_contributors_list.sh new file mode 100755 index 00000000..8bb870b1 --- /dev/null +++ b/scripts/generate_contributors_list.sh @@ -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=$( cd "$here"/.. && 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