File tree Expand file tree Collapse file tree 2 files changed +27
-3
lines changed Expand file tree Collapse file tree 2 files changed +27
-3
lines changed Original file line number Diff line number Diff line change @@ -28,17 +28,22 @@ update-major-dependency-versions:
2828 mvn versions:update-properties -DallowMajorUpdates=true -Dmaven.version.rules=" file://` pwd` /.m2/maven-version-rules.xml"
2929.PHONY : update-major-dependency-versions
3030
31+ update-installdoc :
32+ cat docs/install.md | ./scripts/update-install-doc.sh $(NEW_VERSION ) > docs/install.md.tmp
33+ mv docs/install.md.tmp docs/install.md
34+ .PHONY : update-installdoc
35+
3136update-changelog :
3237 cat CHANGELOG.md | ./scripts/update-changelog.sh $(NEW_VERSION ) > CHANGELOG.md.tmp
3338 mv CHANGELOG.md.tmp CHANGELOG.md
3439.PHONY : update-changelog
3540
36- .commit-and-push-changelog :
37- git commit -am " Update CHANGELOG for v$( NEW_VERSION) "
41+ .commit-and-push-changelog-and-docs :
42+ git commit -am " Update CHANGELOG and docs for v$( NEW_VERSION) "
3843 git push
3944.PHONY : .commit-and-push-changelog
4045
41- release : default update-changelog .commit-and-push-changelog
46+ release : default update-changelog update-installdoc .commit-and-push-changelog-and-docs
4247 mvn --batch-mode release:clean release:prepare -DautoVersionSubmodules=true -Darguments=" -DskipTests=true -DskipITs=true -Darchetype.test.skip=true"
4348 git checkout " v$( NEW_VERSION) "
4449 mvn deploy -P-examples -P-compatibility -Psign-source-javadoc -DskipTests=true -DskipITs=true -Darchetype.test.skip=true
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ set -uf -o pipefail
3+
4+ # Reads installation doc from STDIN and writes out a new one to STDOUT where:
5+ #
6+ # * the version number is updated for both Maven and sbt
7+ #
8+
9+ new_version=$1
10+
11+ installdoc=$( < /dev/stdin)
12+
13+ # Maven
14+ installdoc=$( echo " ${installdoc} " | sed " s/<version>[0-9]\+.[0-9]\+.[0-9]\+<\/version>/<version>${new_version} <\/version>/g" )
15+ # sbt
16+ installdoc=$( echo " ${installdoc} " | sed " s/% \" [0-9]\+.[0-9]\+.[0-9]\+\" %/% \" ${new_version} \" %/g" )
17+
18+ # Output
19+ echo " ${installdoc} "
You can’t perform that action at this time.
0 commit comments