File: gen-authors.sh

package info (click to toggle)
tinyproxy 1.11.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 912 kB
  • sloc: ansic: 6,361; sh: 359; perl: 351; makefile: 190; awk: 4
file content (10 lines) | stat: -rwxr-xr-x 260 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

SCRIPT_DIR="$(cd "$(dirname "${0}")" && pwd)"
BASE_DIR="$(cd "${SCRIPT_DIR}/.." && pwd)"
AUTHORS_FILE="${BASE_DIR}/AUTHORS"

type git > /dev/null || exit
test -d "${BASE_DIR}/.git" || exit

git log --all --format='%aN' | sort -u > "${AUTHORS_FILE}"