File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11CHANGELOG
22=========
33
4- 0.2.0 (2016-XX-XX )
4+ 0.2.0 (2016-01-15 )
55------------------
66
77* Added support for ` is_gift ` and ` has_gift_message ` to the order input
Original file line number Diff line number Diff line change @@ -44,8 +44,6 @@ if [ "$SHOULD_CONTINUE" != "y" ]; then
4444 exit 1
4545fi
4646
47- perl -pi -e " s{(?<=<version>).+?(?=</version>)}{$VERSION }g" README.md
48-
4947PAGE=.gh-pages/index.md
5048cat << EOF > $PAGE
5149---
@@ -57,14 +55,31 @@ version: $TAG
5755
5856EOF
5957
58+ export VERSION
59+ # alter the documentation to point to this version
60+ perl -pi -e ' s/(?<=<version>)[^<]*/$ENV{VERSION}/' README.md
61+ perl -pi -e ' s/(?<=com\.maxmind\.geoip2\:geoip2\:)\d+\.\d+\.\d+([\w\-]+)?/$ENV{VERSION}/' README.md
62+
6063cat README.md >> $PAGE
6164
65+ if [ -n " $( git status --porcelain) " ]; then
66+ git diff
67+
68+ read -e -p " Commit README.md changes? " SHOULD_COMMIT
69+ if [ " $SHOULD_COMMIT " != " y" ]; then
70+ echo " Aborting"
71+ exit 1
72+ fi
73+ git add README.md
74+ git commit -m ' update version number in README.md'
75+ fi
76+
6277# could be combined with the primary build
6378mvn release:clean
64- mvn release:prepare -DreleaseVersion=$VERSION -Dtag=$TAG
79+ mvn release:prepare -DreleaseVersion=" $VERSION " -Dtag=" $TAG "
6580mvn release:perform
6681rm -fr " .gh-pages/doc/$TAG "
67- cp -r target/apidocs .gh-pages/doc/$TAG
82+ cp -r target/apidocs " .gh-pages/doc/$TAG "
6883
6984pushd .gh-pages
7085
You can’t perform that action at this time.
0 commit comments