make contributors generator executable & change dir correctly (#403)

Motivation:

The script to generate the contributors list wasn't executable and
forgot to change to the correct directory before invoking `git`.

Modifications:

- make `scripts/generate_contributors_list.sh` executable
- correctly change directory before invoking git

Result:

it's now possible to invoke the script without explicitly running `bash`
and it's no longer important what directory one invokes the script from.
This commit is contained in:
Johannes Weiß 2018-05-15 10:24:32 +01:00 committed by Cory Benfield
parent a7614d9180
commit a6239a9005
1 changed files with 1 additions and 1 deletions

2
scripts/generate_contributors_list.sh Normal file → Executable file
View File

@ -15,7 +15,7 @@
set -eu
here="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
contributors=$(git shortlog -es | cut -f2 | sed 's/^/- /')
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