mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2024-12-23 14:32:23 +00:00
scripts : sync-ggml-am.sh add option to skip commits
This commit is contained in:
parent
f001a3b7b6
commit
654baf693d
@ -5,7 +5,7 @@
|
|||||||
# Usage:
|
# Usage:
|
||||||
#
|
#
|
||||||
# $ cd /path/to/whisper.cpp
|
# $ cd /path/to/whisper.cpp
|
||||||
# $ ./extra/sync-ggml-am.sh
|
# $ ./extra/sync-ggml-am.sh -skip hash0,hash1,hash2...
|
||||||
#
|
#
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
@ -24,6 +24,11 @@ fi
|
|||||||
lc=$(cat $SRC_WHISPER/extra/sync-ggml.last)
|
lc=$(cat $SRC_WHISPER/extra/sync-ggml.last)
|
||||||
echo "Syncing ggml changes since commit $lc"
|
echo "Syncing ggml changes since commit $lc"
|
||||||
|
|
||||||
|
to_skip=""
|
||||||
|
if [ "$1" == "-skip" ]; then
|
||||||
|
to_skip=$2
|
||||||
|
fi
|
||||||
|
|
||||||
cd $SRC_GGML
|
cd $SRC_GGML
|
||||||
|
|
||||||
git log --oneline $lc..HEAD
|
git log --oneline $lc..HEAD
|
||||||
@ -40,6 +45,13 @@ if [ -f $SRC_WHISPER/ggml-src.patch ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
while read c; do
|
while read c; do
|
||||||
|
if [ -n "$to_skip" ]; then
|
||||||
|
if [[ $to_skip == *"$c"* ]]; then
|
||||||
|
echo "Skipping $c"
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
git format-patch -k $c~1..$c --stdout -- \
|
git format-patch -k $c~1..$c --stdout -- \
|
||||||
include/ggml/ggml*.h \
|
include/ggml/ggml*.h \
|
||||||
src/ggml*.h \
|
src/ggml*.h \
|
||||||
|
Loading…
Reference in New Issue
Block a user