You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by al...@apache.org on 2019/03/05 10:48:17 UTC
[flink] branch release-1.8 updated: Fix version change expressions
in releasing scripts
This is an automated email from the ASF dual-hosted git repository.
aljoscha pushed a commit to branch release-1.8
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-1.8 by this push:
new b027fa7 Fix version change expressions in releasing scripts
b027fa7 is described below
commit b027fa74fd677e59d0cffe6c74bc4915521a1c61
Author: Aljoscha Krettek <al...@gmail.com>
AuthorDate: Tue Mar 5 11:42:44 2019 +0100
Fix version change expressions in releasing scripts
The earlier version had "\1${NEW_VERSION}" in there, which would resolve
to "\11.8.", i.e. the backreference would now be \11.
---
tools/releasing/create_release_branch.sh | 2 +-
tools/releasing/update_branch_version.sh | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/releasing/create_release_branch.sh b/tools/releasing/create_release_branch.sh
index 9673e62..81619e7 100755
--- a/tools/releasing/create_release_branch.sh
+++ b/tools/releasing/create_release_branch.sh
@@ -57,7 +57,7 @@ fi
git checkout -b $target_branch
#change version in all pom files
-find . -name 'pom.xml' -type f -exec perl -pi -e 's#<version>(.*)'$OLD_VERSION'(.*)</version>#<version>\1'$NEW_VERSION'\2</version>#' {} \;
+find . -name 'pom.xml' -type f -exec perl -pi -e 's#<version>(.*)'$OLD_VERSION'(.*)</version>#<version>${1}'$NEW_VERSION'${2}</version>#' {} \;
#change version of documentation
cd docs
diff --git a/tools/releasing/update_branch_version.sh b/tools/releasing/update_branch_version.sh
index 10290d9..6f00093 100755
--- a/tools/releasing/update_branch_version.sh
+++ b/tools/releasing/update_branch_version.sh
@@ -49,7 +49,7 @@ fi
cd ..
#change version in all pom files
-find . -name 'pom.xml' -type f -exec perl -pi -e 's#<version>(.*)'$OLD_VERSION'(.*)</version>#<version>\1'$NEW_VERSION'\2</version>#' {} \;
+find . -name 'pom.xml' -type f -exec perl -pi -e 's#<version>(.*)'$OLD_VERSION'(.*)</version>#<version>${1}'$NEW_VERSION'${2}</version>#' {} \;
#change version of documentation
cd docs