mirror of https://github.com/cmur2/dyndnsd.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
313 B
Bash
14 lines
313 B
Bash
#!/bin/bash -eux
|
|
|
|
sed -i "s/$1/$2/g" lib/dyndnsd/version.rb
|
|
|
|
release_date=$(LC_ALL=en_US.utf8 date +"%B %-d, %Y")
|
|
|
|
if grep "## $2 (" CHANGELOG.md; then
|
|
true
|
|
elif grep "## $2" CHANGELOG.md; then
|
|
sed -i "s/## $2/## $2 ($release_date)/g" CHANGELOG.md
|
|
else
|
|
echo "## $2 ($release_date)" >> CHANGELOG.md
|
|
fi
|