From b1a53c535c895c9aca17b488a6d7ca1f7a4399aa Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Thu, 19 Sep 2024 12:41:22 -0400 Subject: [PATCH] Chore: Update gen-github-release.sh for usage and awk portability --- MAINTAINERS.md | 2 +- scripts/gen-github-release.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS.md b/MAINTAINERS.md index 82c424881cb..6f3ac44d1ba 100644 --- a/MAINTAINERS.md +++ b/MAINTAINERS.md @@ -326,7 +326,7 @@ to pass and for reviewer approval. Generate a template: ```sh - ./scripts/gen-github-release.sh > release.md + ./scripts/gen-github-release.sh {prerelease | latest} > release.md ``` Then replace the remaining `$`-prefixed placeholders, filling in the [_**validator oriented release description**_](#describe-the-release) and using diff --git a/scripts/gen-github-release.sh b/scripts/gen-github-release.sh index b3793ececb4..cf28cc75644 100755 --- a/scripts/gen-github-release.sh +++ b/scripts/gen-github-release.sh @@ -59,7 +59,7 @@ declare -r AWK_REPLACE_PLACEHOLDERS=' BEGIN { for (i = 1; i < ARGC; i++) { arg = ARGV[i]; - if (!match(arg, /^[^/=]+=/)) continue; + if (!match(arg, "^[^/=]+=")) continue; placeholder = "$" substr(arg, 1, RLENGTH - 1); placeholders[placeholder] = 1; subs[placeholder] = substr(arg, RLENGTH + 1, length(arg) - RLENGTH);