ggerganov commited on
Commit
397f291
·
unverified ·
1 Parent(s): 41a13d4

scripts : do not sync commits from this repo

Browse files
Files changed (2) hide show
  1. extra/sync-ggml-am.sh +29 -14
  2. extra/sync-ggml.last +1 -1
extra/sync-ggml-am.sh CHANGED
@@ -27,21 +27,36 @@ echo "Syncing ggml changes since commit $lc"
27
  cd $SRC_GGML
28
 
29
  git log --oneline $lc..HEAD
 
30
 
31
- git format-patch $lc --stdout -- \
32
- include/ggml/ggml*.h \
33
- src/ggml*.h \
34
- src/ggml*.c \
35
- src/ggml*.cpp \
36
- src/ggml*.m \
37
- src/ggml*.metal \
38
- src/ggml*.cu \
39
- tests/test-opt.cpp \
40
- tests/test-grad0.cpp \
41
- tests/test-quantize-fns.cpp \
42
- tests/test-quantize-perf.cpp \
43
- tests/test-backend-ops.cpp \
44
- > $SRC_WHISPER/ggml-src.patch
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
 
46
  # delete files if empty
47
  if [ ! -s $SRC_WHISPER/ggml-src.patch ]; then
 
27
  cd $SRC_GGML
28
 
29
  git log --oneline $lc..HEAD
30
+ git log --oneline $lc..HEAD | grep -v "(whisper/[0-9]*)" | cut -d' ' -f1 > $SRC_WHISPER/ggml-commits
31
 
32
+ if [ ! -s $SRC_WHISPER/ggml-commits ]; then
33
+ rm -v $SRC_WHISPER/ggml-commits
34
+ echo "No new commits"
35
+ exit 0
36
+ fi
37
+
38
+ if [ -f $SRC_WHISPER/ggml-src.patch ]; then
39
+ rm -v $SRC_WHISPER/ggml-src.patch
40
+ fi
41
+
42
+ while read c; do
43
+ git format-patch -k $c~1..$c --stdout -- \
44
+ include/ggml/ggml*.h \
45
+ src/ggml*.h \
46
+ src/ggml*.c \
47
+ src/ggml*.cpp \
48
+ src/ggml*.m \
49
+ src/ggml*.metal \
50
+ src/ggml*.cu \
51
+ tests/test-opt.cpp \
52
+ tests/test-grad0.cpp \
53
+ tests/test-quantize-fns.cpp \
54
+ tests/test-quantize-perf.cpp \
55
+ tests/test-backend-ops.cpp \
56
+ >> $SRC_WHISPER/ggml-src.patch
57
+ done < $SRC_WHISPER/ggml-commits
58
+
59
+ rm -v $SRC_WHISPER/ggml-commits
60
 
61
  # delete files if empty
62
  if [ ! -s $SRC_WHISPER/ggml-src.patch ]; then
extra/sync-ggml.last CHANGED
@@ -1 +1 @@
1
- 1467a4eb71bdb5ac316d248a7f3f26cdadc56b68
 
1
+ 965137f49917768959679a9e860dc414e170fd55