mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2024-12-19 20:57:52 +00:00
scripts : update sync
This commit is contained in:
parent
52ccd4a3a8
commit
3b8aade3c2
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user