Skip to content

Commit

Permalink
Fix get-latest-changelog script (#2656)
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesbvll authored Nov 29, 2023
1 parent 14c9b2a commit de632b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev/get-latest-changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ tags=$(git tag --sort=-v:refname)
new_version=$(echo "$tags" | sed -n '1p')
old_version=$(echo "$tags" | sed -n '2p')

awk -v start="$new_version" -v end="$old_version" '
awk '{sub(/<!--.*-->/, ""); print}' doc/source/ref-changelog.md | awk -v start="$new_version" -v end="$old_version" '
$0 ~ start {flag=1; next}
$0 ~ end {flag=0}
flag && !printed && /^$/ {next} # skip the first blank line
flag && !printed {printed=1}
flag' doc/source/ref-changelog.md
flag'

0 comments on commit de632b2

Please sign in to comment.