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:
28
28
mvn versions:update-properties -DallowMajorUpdates=true -Dmaven.version.rules=" file://` pwd` /.m2/maven-version-rules.xml"
29
29
.PHONY : update-major-dependency-versions
30
30
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
+
31
36
update-changelog :
32
37
cat CHANGELOG.md | ./scripts/update-changelog.sh $(NEW_VERSION ) > CHANGELOG.md.tmp
33
38
mv CHANGELOG.md.tmp CHANGELOG.md
34
39
.PHONY : update-changelog
35
40
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) "
38
43
git push
39
44
.PHONY : .commit-and-push-changelog
40
45
41
- release : default update-changelog .commit-and-push-changelog
46
+ release : default update-changelog update-installdoc .commit-and-push-changelog-and-docs
42
47
mvn --batch-mode release:clean release:prepare -DautoVersionSubmodules=true -Darguments=" -DskipTests=true -DskipITs=true -Darchetype.test.skip=true"
43
48
git checkout " v$( NEW_VERSION) "
44
49
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