Skip to content

Commit

Permalink
Chore: Update gen-github-release.sh for usage and awk portability
Browse files Browse the repository at this point in the history
  • Loading branch information
gibson042 committed Sep 20, 2024
1 parent f29ecb3 commit b1a53c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MAINTAINERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ to pass and for reviewer approval.

Generate a template:
```sh
./scripts/gen-github-release.sh <release-label> > release.md
./scripts/gen-github-release.sh {prerelease | latest} <release-label> > release.md
```
Then replace the remaining `$`-prefixed placeholders, filling in
the [_**validator oriented release description**_](#describe-the-release) and using
Expand Down
2 changes: 1 addition & 1 deletion scripts/gen-github-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b1a53c5

Please sign in to comment.