mirror of https://github.com/rwf2/Rocket.git
Automatically set release date in 'bump_version.sh'.
This commit is contained in:
parent
e12fbe0b8d
commit
f5a83c4d1f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue