From: Georgi Gerganov Date: Mon, 25 Dec 2023 08:58:54 +0000 (+0200) Subject: scripts : fix PR number parsing during sync X-Git-Tag: upstream/0.0.1642~1164 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=25a8964c9a39b470d7e1a940df5ffdb221f73bb0;p=pkg%2Fggml%2Fsources%2Fggml scripts : fix PR number parsing during sync --- diff --git a/scripts/sync-llama-am.sh b/scripts/sync-llama-am.sh index d876c8bd..eb22ff26 100755 --- a/scripts/sync-llama-am.sh +++ b/scripts/sync-llama-am.sh @@ -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