Skip to content

Commit

Permalink
Merge pull request #12 from tamada/release/v1.1.0
Browse files Browse the repository at this point in the history
update
  • Loading branch information
tamada authored Nov 8, 2021
2 parents fca2f53 + 47a4d08 commit 7c65c13
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .bin/update_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ if [[ $result -eq 0 ]]; then
exit 1
fi

prev=$(grep ^VERSION Makefile | tr -d 'VERSION := ')

PREV_VERSION=$(grep ^VERSION Makefile | tr -d 'VERSION := ')
for i in README.md docs/content/_index.md; do
sed -e "s#Version-${prev}-green#Version-${VERSION//-/--}-green#g" -e "s#tag/v${prev}#tag/v${VERSION}#g" $i > a
sed -e "s#Version-${PREV_VERSION}-green#Version-${VERSION//-/--}-green#g" -e "s#tag/v${PREV_VERSION}#tag/v${VERSION}#g" $i > a
mv a $i
done

Expand Down

0 comments on commit 7c65c13

Please sign in to comment.