diff options
author | Peter Kokot <peterkokot@gmail.com> | 2019-03-16 01:37:34 +0100 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2019-03-16 01:37:34 +0100 |
commit | 78596973b3f7af2b8514e015d3e60ec717c586de (patch) | |
tree | fe4db1ba9e99c9f5c309d8acee44f8baf22daa4c /scripts | |
parent | cf8a4b03dce20619df17236d4ae39728b4dba2c2 (diff) | |
download | php-git-78596973b3f7af2b8514e015d3e60ec717c586de.tar.gz |
Make credits script executable from other paths
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/dev/credits | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/dev/credits b/scripts/dev/credits index bdeb2bce07..5197b7bc19 100755 --- a/scripts/dev/credits +++ b/scripts/dev/credits @@ -1,4 +1,10 @@ #!/bin/sh +# +# Generate credits_*.h headers from the ext/*/CREDITS and sapi/*/CREDITS files. + +# Go to project root directory +cd $(CDPATH= cd -- "$(dirname -- "$0")/../../" && pwd -P) + awkprog=' BEGIN { FS = "\n|\r\n|\r"; RS = "" } { print "CREDIT_LINE(\""$1"\", \""$2"\");" }' |