mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-02-21 09:21:49 +00:00
scripts : do not sync commits from this repo
This commit is contained in:
parent
d87de61ae6
commit
2623640cd6
@ -27,8 +27,20 @@ echo "Syncing ggml changes since commit $lc"
|
|||||||
cd $SRC_GGML
|
cd $SRC_GGML
|
||||||
|
|
||||||
git log --oneline $lc..HEAD
|
git log --oneline $lc..HEAD
|
||||||
|
git log --oneline $lc..HEAD | grep -v "(whisper/[0-9]*)" | cut -d' ' -f1 > $SRC_WHISPER/ggml-commits
|
||||||
|
|
||||||
git format-patch $lc --stdout -- \
|
if [ ! -s $SRC_WHISPER/ggml-commits ]; then
|
||||||
|
rm -v $SRC_WHISPER/ggml-commits
|
||||||
|
echo "No new commits"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f $SRC_WHISPER/ggml-src.patch ]; then
|
||||||
|
rm -v $SRC_WHISPER/ggml-src.patch
|
||||||
|
fi
|
||||||
|
|
||||||
|
while read c; do
|
||||||
|
git format-patch -k $c~1..$c --stdout -- \
|
||||||
include/ggml/ggml*.h \
|
include/ggml/ggml*.h \
|
||||||
src/ggml*.h \
|
src/ggml*.h \
|
||||||
src/ggml*.c \
|
src/ggml*.c \
|
||||||
@ -41,7 +53,10 @@ git format-patch $lc --stdout -- \
|
|||||||
tests/test-quantize-fns.cpp \
|
tests/test-quantize-fns.cpp \
|
||||||
tests/test-quantize-perf.cpp \
|
tests/test-quantize-perf.cpp \
|
||||||
tests/test-backend-ops.cpp \
|
tests/test-backend-ops.cpp \
|
||||||
> $SRC_WHISPER/ggml-src.patch
|
>> $SRC_WHISPER/ggml-src.patch
|
||||||
|
done < $SRC_WHISPER/ggml-commits
|
||||||
|
|
||||||
|
rm -v $SRC_WHISPER/ggml-commits
|
||||||
|
|
||||||
# delete files if empty
|
# delete files if empty
|
||||||
if [ ! -s $SRC_WHISPER/ggml-src.patch ]; then
|
if [ ! -s $SRC_WHISPER/ggml-src.patch ]; then
|
||||||
|
@ -1 +1 @@
|
|||||||
1467a4eb71bdb5ac316d248a7f3f26cdadc56b68
|
965137f49917768959679a9e860dc414e170fd55
|
||||||
|
Loading…
x
Reference in New Issue
Block a user