summaryrefslogtreecommitdiff
path: root/scripts/dev/credits
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/dev/credits')
-rwxr-xr-xscripts/dev/credits6
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"\");" }'