Automatically set release date in 'bump_version.sh'.

This commit is contained in:
Sergio Benitez 2017-12-14 23:10:21 -08:00
parent d22dbfbded
commit 5b85a05366
1 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,9 @@ if [ -z ${1} ] || [ -z ${2} ]; then
exit 1
fi
today=$(date "+%b %d, %Y")
find . -name "*.toml" | xargs sed -i.bak "s/${1}/${2}/g"
find site/ -name "*.md" | xargs sed -i.bak "s/${1}/${2}/g"
sed -i.bak "s/^date.*/date = \"$today\"/" site/index.toml
find . -name "*.bak" | xargs rm