]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
scripts : fix PR number parsing during sync
authorGeorgi Gerganov <redacted>
Mon, 25 Dec 2023 08:58:54 +0000 (10:58 +0200)
committerGeorgi Gerganov <redacted>
Wed, 27 Dec 2023 09:40:50 +0000 (11:40 +0200)
scripts/sync-llama-am.sh

index d876c8bde2f645eac11ac04520526a51c89d0de8..eb22ff26af9b4baf906978ff4ca73f80e6a5a5c9 100755 (executable)
@@ -57,6 +57,9 @@ if [ -f $SRC_GGML/llama-src.patch ]; then
     cat llama-src.patch | sed -e 's/^Subject: \(.*\) (#\([0-9]*\))/Subject: \1 (llama\/\2)/' > llama-src.patch.tmp
     mv llama-src.patch.tmp llama-src.patch
 
+    cat llama-src.patch | sed -e 's/^\(.*\) (#\([0-9]*\))$/\1 (llama\/\2)/' > llama-src.patch.tmp
+    mv llama-src.patch.tmp llama-src.patch
+
     # replace filenames:
     #
     # ggml.c              -> src/ggml.c