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) x.x.x Release notes (yyyy-MM-dd)
============================================================= =============================================================
### API breaking changes ### Breaking changes
* None. * None
### Enhancements ### Enhancements
* None. * None
### Bugfixes ### Bugfixes
* None. * None
EOS)
changelog=$(cat CHANGELOG.md) $(cat CHANGELOG.md)
echo "$empty_section" > CHANGELOG.md EOF
echo >> CHANGELOG.md )
echo "$changelog" >> CHANGELOG.md
echo "$CHANGELOG" > CHANGELOG.md