Skip to content

Commit ccbe9d5

Browse files
committed
extra : sync grammar-parser
1 parent 81a3c41 commit ccbe9d5

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

extra/sync-ggml-am.sh

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ while read c; do
6565
examples/common.cpp \
6666
examples/common-ggml.h \
6767
examples/common-ggml.cpp \
68+
examples/whisper/grammar-parser.h \
69+
examples/whisper/grammar-parser.cpp \
6870
examples/whisper/whisper.h \
6971
examples/whisper/whisper.cpp \
7072
examples/whisper/main.cpp \
@@ -121,10 +123,12 @@ if [ -f $SRC_WHISPER/ggml-src.patch ]; then
121123
# include/ggml/ggml-alloc.h -> ggml-alloc.h
122124
# include/ggml/ggml-backend.h -> ggml-backend.h
123125
#
124-
# examples/common.h -> examples/common.h
125-
# examples/common.cpp -> examples/common.cpp
126-
# examples/common-ggml.h -> examples/common-ggml.h
127-
# examples/common-ggml.cpp -> examples/common-ggml.cpp
126+
# examples/common.h -> examples/common.h
127+
# examples/common.cpp -> examples/common.cpp
128+
# examples/common-ggml.h -> examples/common-ggml.h
129+
# examples/common-ggml.cpp -> examples/common-ggml.cpp
130+
# examples/whisper/grammar-parser.h -> examples/grammar-parser.h
131+
# examples/whisper/grammar-parser.cpp -> examples/grammar-parser.cpp
128132
#
129133
# examples/whisper/whisper.h -> whisper.h
130134
# examples/whisper/whisper.cpp -> whisper.cpp
@@ -162,6 +166,8 @@ if [ -f $SRC_WHISPER/ggml-src.patch ]; then
162166
-e 's/examples\/common\.cpp/examples\/common.cpp/g' \
163167
-e 's/examples\/common-ggml\.h/examples\/common-ggml.h/g' \
164168
-e 's/examples\/common-ggml\.cpp/examples\/common-ggml.cpp/g' \
169+
-e 's/examples\/whisper\/grammar-parser\.h/examples\/grammar-parser.h/g' \
170+
-e 's/examples\/whisper\/grammar-parser\.cpp/examples\/grammar-parser.cpp/g' \
165171
-e 's/examples\/whisper\/whisper\.h/whisper.h/g' \
166172
-e 's/examples\/whisper\/whisper\.cpp/whisper.cpp/g' \
167173
-e 's/examples\/whisper\/main\.cpp/examples\/main\/main.cpp/g' \

extra/sync-ggml.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@ cp -rpv ../ggml/include/ggml/ggml.h ./ggml.h
2929
cp -rpv ../ggml/include/ggml/ggml-alloc.h ./ggml-alloc.h
3030
cp -rpv ../ggml/include/ggml/ggml-backend.h ./ggml-backend.h
3131

32-
cp -rpv ../ggml/examples/common.h ./examples/common.h
33-
cp -rpv ../ggml/examples/common.cpp ./examples/common.cpp
34-
cp -rpv ../ggml/examples/common-ggml.h ./examples/common-ggml.h
35-
cp -rpv ../ggml/examples/common-ggml.cpp ./examples/common-ggml.cpp
32+
cp -rpv ../ggml/examples/common.h ./examples/common.h
33+
cp -rpv ../ggml/examples/common.cpp ./examples/common.cpp
34+
cp -rpv ../ggml/examples/common-ggml.h ./examples/common-ggml.h
35+
cp -rpv ../ggml/examples/common-ggml.cpp ./examples/common-ggml.cpp
36+
cp -rpv ../ggml/examples/whisper/grammar-parser.h ./examples/grammar-parser.h
37+
cp -rpv ../ggml/examples/whisper/grammar-parser.cpp ./examples/grammar-parser.cpp
3638

3739
cp -rpv ../ggml/examples/whisper/whisper.h ./whisper.h
3840
cp -rpv ../ggml/examples/whisper/whisper.cpp ./whisper.cpp

0 commit comments

Comments
 (0)