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 571997b  Fix create_release_branch.sh to accomodate Hadoop Versions
571997b is described below

commit 571997b2e3e7b078d52f5e866d62a1c43050646c
Author: Aljoscha Krettek <aljoscha.kret...@gmail.com>
AuthorDate: Tue Mar 5 11:18:33 2019 +0100

    Fix create_release_branch.sh to accomodate Hadoop Versions
    
    Before, this would not correctly change version tags that have a version
    prefix or suffix, like the shaded Hadoop modules.
---
 tools/releasing/create_release_branch.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/releasing/create_release_branch.sh 
b/tools/releasing/create_release_branch.sh
index 615722b..9673e62 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>'$NEW_VERSION'</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