From 5b85a0536602de4fc4a821ff0bc134d177ab8d74 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Thu, 14 Dec 2017 23:10:21 -0800 Subject: [PATCH] Automatically set release date in 'bump_version.sh'. --- scripts/bump_version.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/bump_version.sh b/scripts/bump_version.sh index d91e127d..3d9d204d 100755 --- a/scripts/bump_version.sh +++ b/scripts/bump_version.sh @@ -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