Skip to content

Commit aaf8bdf

Browse files
committed
scripts : sync gguf
1 parent 84f8db7 commit aaf8bdf

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

scripts/sync-ggml-am.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ while read c; do
6060
cmake/common.cmake \
6161
cmake/ggml-config.cmake.in \
6262
src/ggml-cpu/cmake/FindSIMD.cmake \
63-
src/ggml*.h \
6463
src/ggml* \
64+
src/gguf* \
6565
include/ggml*.h \
6666
include/gguf*.h \
6767
examples/common.h \
@@ -105,6 +105,7 @@ if [ -f $SRC_WHISPER/ggml-src.patch ]; then
105105
# src/ggml-cpu/cmake/FindSIMD.cmake -> ggml/src/ggml-cpu/cmake/FindSIMD.cmake
106106
#
107107
# src/ggml* -> ggml/src/ggml*.c
108+
# src/gguf* -> ggml/src/gguf*.c
108109
#
109110
# include/ggml*.h -> ggml/include/ggml*.h
110111
# include/gguf*.h -> ggml/include/gguf*.h
@@ -126,6 +127,7 @@ if [ -f $SRC_WHISPER/ggml-src.patch ]; then
126127
-e 's/(^[[:space:]]| [ab]\/)cmake\/ggml-config.cmake.in/\1ggml\/cmake\/ggml-config.cmake.in/g' \
127128
-e 's/(^[[:space:]]| [ab]\/)src\/ggml-cpu\/cmake\/FindSIMD.cmake/\1ggml\/src\/ggml-cpu\/cmake\/FindSIMD.cmake/g' \
128129
-e 's/([[:space:]]| [ab]\/)src\/ggml(.*)/\1ggml\/src\/ggml\2/g' \
130+
-e 's/([[:space:]]| [ab]\/)src\/gguf(.*)/\1ggml\/src\/gguf\2/g' \
129131
-e 's/(^[[:space:]]| [ab]\/)include\/ggml(.*)\.h/\1ggml\/include\/ggml\2.h/g' \
130132
-e 's/(^[[:space:]]| [ab]\/)include\/gguf(.*)\.h/\1ggml\/include\/gguf\2.h/g' \
131133
-e 's/(^[[:space:]]| [ab]\/)examples\/common\.h/\1examples\/common.h/g' \

scripts/sync-ggml.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ cp -rpv ../ggml/cmake/* ./ggml/cmake/
77
cp -rpv ../ggml/src/ggml-cpu/cmake/* ./ggml/src/ggml-cpu/cmake/
88

99
cp -rpv ../ggml/src/ggml* ./ggml/src/
10+
cp -rpv ../ggml/src/gguf* ./ggml/src/
1011

1112
cp -rpv ../ggml/include/ggml*.h ./ggml/include/
1213
cp -rpv ../ggml/include/gguf*.h ./ggml/include/

0 commit comments

Comments
 (0)