Fix changelog formatting for large version numbers

This allows for version numbers which require more than 18 characters to
be underlined and pretty. :)
This commit is contained in:
Stephen Mathieson 2014-02-24 11:45:42 -05:00
parent e91da7c2b4
commit fde9d1cd30

View file

@ -25,7 +25,9 @@ while [ "$1" != "" ]; do
done
DATE=`date +'%Y-%m-%d'`
HEAD="\n$TAG / $DATE\n==================\n\n"
HEAD="\n$TAG / $DATE\n"
for i in $(seq 5 ${#HEAD}); do HEAD="$HEAD="; done
HEAD="$HEAD\n\n"
if $LIST; then
version=$(git describe --tags --abbrev=0 $(git rev-list --tags --max-count=1))