From 3b8aade3c2f29496a34f87f554e0cf1287ff8e06 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Tue, 9 Apr 2024 20:25:50 +0300 Subject: [PATCH] scripts : update sync --- scripts/sync-ggml-am.sh | 7 +++++++ scripts/sync-ggml.sh | 2 ++ 2 files changed, 9 insertions(+) diff --git a/scripts/sync-ggml-am.sh b/scripts/sync-ggml-am.sh index 00149931..70ff16d0 100755 --- a/scripts/sync-ggml-am.sh +++ b/scripts/sync-ggml-am.sh @@ -71,6 +71,8 @@ while read c; do examples/whisper/whisper.cpp \ examples/whisper/main.cpp \ examples/whisper/quantize.cpp \ + LICENSE \ + scripts/gen-authors.sh \ >> $SRC_WHISPER/ggml-src.patch done < $SRC_WHISPER/ggml-commits @@ -134,6 +136,9 @@ if [ -f $SRC_WHISPER/ggml-src.patch ]; then # examples/whisper/whisper.cpp -> whisper.cpp # examples/whisper/main.cpp -> examples/main/main.cpp # examples/whisper/quantize.cpp -> examples/quantize/quantize.cpp + # + # LICENSE -> LICENSE + # ggml/scripts/gen-authors.sh -> scripts/gen-authors.sh cat ggml-src.patch | sed \ -e 's/src\/ggml\.c/ggml.c/g' \ @@ -172,6 +177,8 @@ if [ -f $SRC_WHISPER/ggml-src.patch ]; then -e 's/examples\/whisper\/whisper\.cpp/whisper.cpp/g' \ -e 's/examples\/whisper\/main\.cpp/examples\/main\/main.cpp/g' \ -e 's/examples\/whisper\/quantize\.cpp/examples\/quantize\/quantize.cpp/g' \ + -e 's/LICENSE/LICENSE/g' \ + -e 's/ggml\/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 1482cfbc..2efffcd2 100755 --- a/scripts/sync-ggml.sh +++ b/scripts/sync-ggml.sh @@ -41,3 +41,5 @@ cp -rpv ../ggml/examples/whisper/whisper.cpp ./whisper.cpp cp -rpv ../ggml/examples/whisper/main.cpp ./examples/main/main.cpp cp -rpv ../ggml/examples/whisper/quantize.cpp ./examples/quantize/quantize.cpp +cp -rpv ../LICENSE ./LICENSE +cp -rpv ../ggml/scripts/gen-authors.sh ./scripts/gen-authors.sh