File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,6 @@ set -x # Print command traces before executing command.
15
15
# Check whether the Upcoming release header is present
16
16
head -1 CHANGES | grep -q Upcoming
17
17
UPCOMING=$?
18
- if [[ " $UPCOMING " == " 0" ]]; then
19
- head -n3 CHANGES >> newchanges
20
- fi
21
18
22
19
# Elaborate today's release header
23
20
HEADER=" $1 ($( date ' +%B %d, %Y' ) )"
@@ -30,8 +27,9 @@ git log --grep="Merge pull request" `git describe --tags --abbrev=0`..HEAD --pre
30
27
echo " " >> newchanges
31
28
echo " " >> newchanges
32
29
33
- # Add back the Upcoming header if it was present
30
+ # Append old CHANGES
34
31
if [[ " $UPCOMING " == " 0" ]]; then
32
+ # Drop the Upcoming title if present
35
33
tail -n+4 CHANGES >> newchanges
36
34
else
37
35
cat CHANGES >> newchanges
You can’t perform that action at this time.
0 commit comments