Update changelog script

This commit is contained in:
Scott Kyle 2016-03-29 15:26:45 -07:00
parent 89e28be437
commit bbc0ed9d62
1 changed files with 18 additions and 10 deletions

28
scripts/changelog-header.sh Normal file → Executable file
View File

@ -1,14 +1,22 @@
empty_section=$(cat <<EOS
#!/bin/bash
set -e
set -o pipefail
CHANGELOG=$(cat <<EOF
x.x.x Release notes (yyyy-MM-dd)
=============================================================
### API breaking changes
* None.
### Breaking changes
* None
### Enhancements
* None.
* None
### Bugfixes
* None.
EOS)
changelog=$(cat CHANGELOG.md)
echo "$empty_section" > CHANGELOG.md
echo >> CHANGELOG.md
echo "$changelog" >> CHANGELOG.md
* None
$(cat CHANGELOG.md)
EOF
)
echo "$CHANGELOG" > CHANGELOG.md