# Usage:
#
# $ cd /path/to/ggml
-# $ ./scripts/sync-llama-am.sh
+# $ ./scripts/sync-llama-am.sh -skip hash0,hash1,hash2...
#
set -e
lc=$(cat $SRC_GGML/scripts/sync-llama.last)
echo "Syncing llama.cpp changes since commit $lc"
+to_skip=""
+if [ "$1" == "-skip" ]; then
+ to_skip=$2
+fi
+
cd $SRC_LLAMA
git log --oneline $lc..HEAD
fi
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 -- \
ggml*.h \
ggml*.c \
-7d4265af83a8a5ab1b3b90094434e130e4d4a58b
+dd22e4f9081080440024b19fe97045d498e8cddf
# Usage:
#
# $ cd /path/to/ggml
-# $ ./scripts/sync-whisper-am.sh
+# $ ./scripts/sync-whisper-am.sh -skip hash0,hash1,hash2...
#
set -e
lc=$(cat $SRC_GGML/scripts/sync-whisper.last)
echo "Syncing whisper.cpp changes since commit $lc"
+to_skip=""
+if [ "$1" == "-skip" ]; then
+ to_skip=$2
+fi
+
cd $SRC_WHISPER
git log --oneline $lc..HEAD
fi
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 -- \
ggml*.h \
ggml*.c \
-2623640cd6b8e077ffb1fbe3c265208da3a0ca6d
+14c57952f7a53a82819bbfcfcc6a91682c66ddbf