Skip to content

Commit

Permalink
Add script to generate CONTRIBUTORS.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Feb 3, 2020
1 parent fde2abf commit 241b938
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .mailmap
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Jonathan McAllister <[email protected]> <[email protected]>
Jonathan McAllister <[email protected]> <[email protected]>
Jonathan McAllister <[email protected]> Jonny McAllister <[email protected]>
Yuki Takei <[email protected]> Yuki Takei <[email protected]>
Yuki Takei <[email protected]> noppoman <[email protected]>
21 changes: 21 additions & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
For the purpose of tracking copyright, this is the list of individuals and
organizations who have contributed source code to aws-sdk-swift.

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

### Contributors

- Adam Fowler <[email protected]>
- Fabian Fett <[email protected]>
- Joe Smith <[email protected]>
- Jonathan McAllister <[email protected]>
- Yifei Teng <[email protected]>
- Yuki Takei <[email protected]>

**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`
37 changes: 37 additions & 0 deletions scripts/generate_contributors_list.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/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 aws-sdk-swift.
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
### 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

0 comments on commit 241b938

Please sign in to comment.