From: Georgi Gerganov Date: Tue, 9 Apr 2024 17:15:04 +0000 (+0300) Subject: scripts : sync LICENSE and gen-authors.sh X-Git-Tag: upstream/0.0.1642~779 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=9bd7c3d0c40d8148374742baa366967f90d1f74c;p=pkg%2Fggml%2Fsources%2Fggml scripts : sync LICENSE and gen-authors.sh --- diff --git a/scripts/sync-llama-am.sh b/scripts/sync-llama-am.sh index a113e0b9..6393bdf7 100755 --- a/scripts/sync-llama-am.sh +++ b/scripts/sync-llama-am.sh @@ -65,6 +65,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_GGML/llama-src.patch done < $SRC_GGML/llama-commits @@ -122,6 +124,9 @@ if [ -f $SRC_GGML/llama-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 llama-src.patch | sed \ -e 's/\/ggml\.c/\/src\/ggml.c/g' \ @@ -155,6 +160,8 @@ if [ -f $SRC_GGML/llama-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' \ > llama-src.patch.tmp mv llama-src.patch.tmp llama-src.patch diff --git a/scripts/sync-llama.sh b/scripts/sync-llama.sh index 3696633f..ca743700 100755 --- a/scripts/sync-llama.sh +++ b/scripts/sync-llama.sh @@ -33,3 +33,6 @@ cp -rpv ../llama.cpp/tests/test-grad0.cpp tests/test-grad0.cpp cp -rpv ../llama.cpp/tests/test-quantize-fns.cpp tests/test-quantize-fns.cpp cp -rpv ../llama.cpp/tests/test-quantize-perf.cpp tests/test-quantize-perf.cpp cp -rpv ../llama.cpp/tests/test-backend-ops.cpp tests/test-backend-ops.cpp + +cp -rpv ../llama.cpp/LICENSE ./LICENSE +cp -rpv ../llama.cpp/scripts/gen-authors.sh ./scripts/gen-authors.sh diff --git a/scripts/sync-whisper-am.sh b/scripts/sync-whisper-am.sh index c19da23a..201877e7 100755 --- a/scripts/sync-whisper-am.sh +++ b/scripts/sync-whisper-am.sh @@ -70,6 +70,8 @@ while read c; do examples/grammar-parser.cpp \ examples/main/main.cpp \ examples/quantize/quantize.cpp \ + LICENSE \ + scripts/gen-authors.sh \ >> $SRC_GGML/whisper-src.patch done < $SRC_GGML/whisper-commits @@ -133,6 +135,9 @@ if [ -f $SRC_GGML/whisper-src.patch ]; then # examples/grammar-parser.cpp -> examples/whisper/grammar-parser.cpp # examples/main/main.cpp -> examples/whisper/main.cpp # examples/quantize/quantize.cpp -> examples/whisper/quantize.cpp + # + # LICENSE -> LICENSE + # scripts/gen-authors.sh -> scripts/gen-authors.sh cat whisper-src.patch | sed \ -e 's/\/ggml\.c/\/src\/ggml.c/g' \ @@ -171,6 +176,8 @@ if [ -f $SRC_GGML/whisper-src.patch ]; then -e 's/\/examples\/grammar-parser\.cpp/\/examples\/whisper\/grammar-parser.cpp/g' \ -e 's/\/examples\/main\/main\.cpp/\/examples\/whisper\/main.cpp/g' \ -e 's/\/examples\/quantize\/quantize\.cpp/\/examples\/whisper\/quantize.cpp/g' \ + -e 's/\/LICENSE/\/LICENSE/g' \ + -e 's/\/scripts\/gen-authors\.sh/\/scripts\/gen-authors.sh/g' \ > whisper-src.patch.tmp mv whisper-src.patch.tmp whisper-src.patch diff --git a/scripts/sync-whisper.sh b/scripts/sync-whisper.sh index b6cbac81..a703ced1 100755 --- a/scripts/sync-whisper.sh +++ b/scripts/sync-whisper.sh @@ -40,3 +40,6 @@ cp -rpv ../whisper.cpp/whisper.h examples/whisper/whisper.h cp -rpv ../whisper.cpp/whisper.cpp examples/whisper/whisper.cpp cp -rpv ../whisper.cpp/examples/main/main.cpp examples/whisper/main.cpp cp -rpv ../whisper.cpp/examples/quantize/quantize.cpp examples/whisper/quantize.cpp + +cp -rpv ../whisper.cpp/LICENSE ./LICENSE +cp -rpv ../whisper.cpp/scripts/gen-authors.sh ./scripts/gen-authors.sh