Skip to content

Commit 6d5e40f

Browse files
committed
drop Upcoming release if present
1 parent 2d99ee9 commit 6d5e40f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tools/update_changes.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ set -x # Print command traces before executing command.
1515
# Check whether the Upcoming release header is present
1616
head -1 CHANGES | grep -q Upcoming
1717
UPCOMING=$?
18-
if [[ "$UPCOMING" == "0" ]]; then
19-
head -n3 CHANGES >> newchanges
20-
fi
2118

2219
# Elaborate today's release header
2320
HEADER="$1 ($(date '+%B %d, %Y'))"
@@ -30,8 +27,9 @@ git log --grep="Merge pull request" `git describe --tags --abbrev=0`..HEAD --pre
3027
echo "" >> newchanges
3128
echo "" >> newchanges
3229

33-
# Add back the Upcoming header if it was present
30+
# Append old CHANGES
3431
if [[ "$UPCOMING" == "0" ]]; then
32+
# Drop the Upcoming title if present
3533
tail -n+4 CHANGES >> newchanges
3634
else
3735
cat CHANGES >> newchanges

0 commit comments

Comments
 (0)