Skip to content
Myr

Merge pull request #1905 from tmccombs/release-automation

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Add a little more automation for the release

authored by Thayne McCombs · committed by GitHub · parents c73e5e5, 160d00f · Browse files · 2 files+45 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+45 added−1 removed

  • other:+45 added−1 removed

2 files+45 added−1 removed

modified:doc/release-checklist.md+4 added-1 removed
added:scripts/update-help.awk+41 added
1#!/usr/bin/gawk -f23BEGIN {4 inSection = 05 inBlock = 06}789/Command-line options/ { inSection=1 }1011inSection && /^```/ {12 inBlock=113 inSection=014 # print the starting fence then move to next line15 print16 next17}1819inBlock && /^```/ {20 cmd="cargo run --release --quiet -- -h"21 # Output the results of fd -h22 u=023 while (cmd | getline line) {24 # Skip everything before the usage line25 if (line ~ /^Usage/) {26 u=1;27 }28 if (u) {29 print line30 }31 }32 status = close(cmd)33 if (status) {34 print "failed to generate help output" > "/dev/stderr"35 exit 136 }37 inBlock = 038}3940!inBlock41