This is an automated email from the ASF dual-hosted git repository.

aljoscha pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/master by this push:
     new 60bedd9  Fix version change expressions in releasing scripts
60bedd9 is described below

commit 60bedd9dcda3d10b15999b124375ea381a4eee2d
Author: Aljoscha Krettek <aljoscha.kret...@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

Reply via email to