]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
scripts : update sync
authorGeorgi Gerganov <redacted>
Tue, 9 Apr 2024 17:25:50 +0000 (20:25 +0300)
committerGeorgi Gerganov <redacted>
Tue, 9 Apr 2024 17:25:50 +0000 (20:25 +0300)
scripts/sync-ggml-am.sh
scripts/sync-ggml.sh

index 00149931b3b38902b9f4bb40ed8d9a250ce36bd9..70ff16d0df2dd15add7d8920f7dacaee4198a83a 100755 (executable)
@@ -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
 
index 1482cfbc752c422a539acd2c1c11bbebf12520eb..2efffcd213c2b4ecdb5f687b519f9d18858451e0 100755 (executable)
@@ -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