Skip to content

Commit 3b8aade

Browse files
committed
scripts : update sync
1 parent 52ccd4a commit 3b8aade

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

scripts/sync-ggml-am.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ while read c; do
7171
examples/whisper/whisper.cpp \
7272
examples/whisper/main.cpp \
7373
examples/whisper/quantize.cpp \
74+
LICENSE \
75+
scripts/gen-authors.sh \
7476
>> $SRC_WHISPER/ggml-src.patch
7577
done < $SRC_WHISPER/ggml-commits
7678

@@ -134,6 +136,9 @@ if [ -f $SRC_WHISPER/ggml-src.patch ]; then
134136
# examples/whisper/whisper.cpp -> whisper.cpp
135137
# examples/whisper/main.cpp -> examples/main/main.cpp
136138
# examples/whisper/quantize.cpp -> examples/quantize/quantize.cpp
139+
#
140+
# LICENSE -> LICENSE
141+
# ggml/scripts/gen-authors.sh -> scripts/gen-authors.sh
137142

138143
cat ggml-src.patch | sed \
139144
-e 's/src\/ggml\.c/ggml.c/g' \
@@ -172,6 +177,8 @@ if [ -f $SRC_WHISPER/ggml-src.patch ]; then
172177
-e 's/examples\/whisper\/whisper\.cpp/whisper.cpp/g' \
173178
-e 's/examples\/whisper\/main\.cpp/examples\/main\/main.cpp/g' \
174179
-e 's/examples\/whisper\/quantize\.cpp/examples\/quantize\/quantize.cpp/g' \
180+
-e 's/LICENSE/LICENSE/g' \
181+
-e 's/ggml\/scripts\/gen-authors\.sh/scripts\/gen-authors.sh/g' \
175182
> ggml-src.patch.tmp
176183
mv ggml-src.patch.tmp ggml-src.patch
177184

scripts/sync-ggml.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,5 @@ cp -rpv ../ggml/examples/whisper/whisper.cpp ./whisper.cpp
4141
cp -rpv ../ggml/examples/whisper/main.cpp ./examples/main/main.cpp
4242
cp -rpv ../ggml/examples/whisper/quantize.cpp ./examples/quantize/quantize.cpp
4343

44+
cp -rpv ../LICENSE ./LICENSE
45+
cp -rpv ../ggml/scripts/gen-authors.sh ./scripts/gen-authors.sh

0 commit comments

Comments
 (0)