Fix changelog today generation

This commit is contained in:
Wan Liuyang
2018-04-16 20:00:00 +08:00
parent a308dc92df
commit feabda5d29
+1 -1
View File
@@ -40,7 +40,7 @@ function readme {
# creates a changelog based on the commits from the previous version until now
changelog=$(tail -n +6 doc/changes.rst)
gitlog=$(git log v$previousVersion.. --oneline --pretty=format:'* %s (%h)' | grep -v "Merge")
today=$(date "+(%B %m, %Y)")
today=$(date "+(%B %d, %Y)")
echo -e "Change log\n==========\n\nStable versions\n~~~~~~~~~~~~~~~\n\nVersion $version $today\n-----------------------------------\n\n$gitlog\n$changelog" > doc/changes.rst
}