You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
545 B

  1. #!/bin/bash
  2. # Author: Sotiris Papadopoulos <ytubedlg@gmail.com>
  3. # Last-Revision: 2017-04-17
  4. # Script to update the AUTHORS file
  5. #
  6. # Usage: ./update-authors.sh
  7. cd ..
  8. git log --reverse --format="%aN <%aE>" | python -c "
  9. import sys
  10. authors = set()
  11. sys.stdout.write('# Authors ordered by first contribution.\n\n')
  12. for line in sys.stdin:
  13. username, _ = line.split('<')
  14. if username not in authors:
  15. authors.add(username)
  16. sys.stdout.write(line)
  17. sys.stdout.write('\n# Generated by update-authors.sh script\n')
  18. " > AUTHORS