Skip to content

Commit 1b8ecbb

Browse files
committed
add awk script
1 parent 676300b commit 1b8ecbb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

RELEASING.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ These are the steps for a regularly scheduled release from HEAD.
1414

1515
1. [Determine the next semantic version number](#determining-semantic-version).
1616
1. Update CHANGELOG.md: replace the `v0-0-0` and `0.0.0` with `X.Y.0`.
17+
```
18+
awk -v version=X.Y.0 'BEGIN { hv=version; gsub(/\./, "-", hv) } /END_UNRELEASED_TEMPLATE/ { found_marker = 1 } found_marker { gsub(/v0-0-0/, hv, $0); gsub(/Unreleased/, "[" version "] - " strftime("%Y-%m-%d"), $0); gsub(/0.0.0/, version, $0); } { print } ' CHANGELOG.md > /tmp/changelog && cp /tmp/changelog CHANGELOG.md
19+
```
1720
1. Replace `VERSION_NEXT_*` strings with `X.Y.0`.
1821
```
1922
grep -l --exclude=CONTRIBUTING.md --exclude=RELEASING.md --exclude-dir=.* VERSION_NEXT_ -r \

0 commit comments

Comments
 (0)