generate-contributors-list.sh 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. #!/bin/bash
  2. ##===----------------------------------------------------------------------===##
  3. ##
  4. ## This source file is part of the SwiftNIO open source project
  5. ##
  6. ## Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors
  7. ## Licensed under Apache License v2.0
  8. ##
  9. ## See LICENSE.txt for license information
  10. ## See CONTRIBUTORS.txt for the list of SwiftNIO project authors
  11. ##
  12. ## SPDX-License-Identifier: Apache-2.0
  13. ##
  14. ##===----------------------------------------------------------------------===##
  15. set -eu
  16. here="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
  17. contributors=$( cd "$here"/.. && git shortlog -es | cut -f2 | sed 's/^/- /' )
  18. cat > "$here/../CONTRIBUTORS.txt" <<- EOF
  19. For the purpose of tracking copyright, this is the list of individuals and
  20. organizations who have contributed source code to CryptoSwift.
  21. ### Contributors
  22. $contributors
  23. **Updating this list**
  24. 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\`
  25. EOF