summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGeorgi Gerganov <ggerganov@gmail.com>2024-04-09 09:23:19 +0300
committerGitHub <noreply@github.com>2024-04-09 09:23:19 +0300
commite11a8999b5690f810c2c99c14347f0834e68c524 (patch)
tree5ee6411bb0151bbdb3efb0ad947d7982659ef16d /scripts
parentcc4a95426d17417d3c83f12bdb514fbe8abe2a88 (diff)
license : update copyright notice + add AUTHORS (#6405)
* license : add AUTHORS * authors : update * scipts : add LICENSE and gen-authors.sh to sync
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gen-authors.sh9
-rwxr-xr-xscripts/sync-ggml-am.sh7
-rwxr-xr-xscripts/sync-ggml.sh3
3 files changed, 19 insertions, 0 deletions
diff --git a/scripts/gen-authors.sh b/scripts/gen-authors.sh
new file mode 100755
index 00000000..3ef8391c
--- /dev/null
+++ b/scripts/gen-authors.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+printf "# date: $(date)\n" > AUTHORS
+printf "# this file is auto-generated by scripts/gen-authors.sh\n\n" >> AUTHORS
+
+git log --format='%an <%ae>' --reverse --date=short master | awk '!seen[$0]++' | sort >> AUTHORS
+
+# if necessary, update your name here. for example: jdoe -> John Doe
+sed -i '' 's/^jdoe/John Doe/g' AUTHORS
diff --git a/scripts/sync-ggml-am.sh b/scripts/sync-ggml-am.sh
index 3ae7f460..7c157eb4 100755
--- a/scripts/sync-ggml-am.sh
+++ b/scripts/sync-ggml-am.sh
@@ -66,6 +66,8 @@ while read c; do
tests/test-quantize-fns.cpp \
tests/test-quantize-perf.cpp \
tests/test-backend-ops.cpp \
+ LICENSE \
+ scripts/gen-authors.sh \
>> $SRC_LLAMA/ggml-src.patch
done < $SRC_LLAMA/ggml-commits
@@ -123,6 +125,9 @@ if [ -f $SRC_LLAMA/ggml-src.patch ]; then
# tests/test-quantize-fns.cpp -> tests/test-quantize-fns.cpp
# tests/test-quantize-perf.cpp -> tests/test-quantize-perf.cpp
# tests/test-backend-ops.cpp -> tests/test-backend-ops.cpp
+ #
+ # LICENSE -> LICENSE
+ # scripts/gen-authors.sh -> scripts/gen-authors.sh
cat ggml-src.patch | sed \
-e 's/src\/ggml\.c/ggml.c/g' \
@@ -156,6 +161,8 @@ if [ -f $SRC_LLAMA/ggml-src.patch ]; then
-e 's/tests\/test-quantize-fns\.cpp/tests\/test-quantize-fns.cpp/g' \
-e 's/tests\/test-quantize-perf\.cpp/tests\/test-quantize-perf.cpp/g' \
-e 's/tests\/test-backend-ops\.cpp/tests\/test-backend-ops.cpp/g' \
+ -e 's/LICENSE/LICENSE/g' \
+ -e 's/scripts\/gen-authors\.sh/scripts\/gen-authors.sh/g' \
> ggml-src.patch.tmp
mv ggml-src.patch.tmp ggml-src.patch
diff --git a/scripts/sync-ggml.sh b/scripts/sync-ggml.sh
index d8fdaadf..80c43976 100755
--- a/scripts/sync-ggml.sh
+++ b/scripts/sync-ggml.sh
@@ -31,3 +31,6 @@ cp -rpv ../ggml/include/ggml/ggml-backend.h ./ggml-backend.h
cp -rpv ../ggml/tests/test-opt.cpp ./tests/test-opt.cpp
cp -rpv ../ggml/tests/test-grad0.cpp ./tests/test-grad0.cpp
cp -rpv ../ggml/tests/test-backend-ops.cpp ./tests/test-backend-ops.cpp
+
+cp -rpv ../LICENSE ./LICENSE
+cp -rpv ../ggml/scripts/gen-authors.sh ./scripts/gen-authors.sh