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:20:52 UTC
[flink] branch master updated: Fix create_release_branch.sh to
accomodate Hadoop Versions
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 9d6f221 Fix create_release_branch.sh to accomodate Hadoop Versions
9d6f221 is described below
commit 9d6f221ba9b514a0929d0a0e429852d71b7d61f8
Author: Aljoscha Krettek <al...@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