flink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From u..@apache.org
Subject flink git commit: [tools] Properly update all POM versions in release script
Date Mon, 08 Feb 2016 14:38:29 GMT
Repository: flink
Updated Branches:
  refs/heads/release-0.10 0c8a9ce2b -> 2cd06181f


[tools] Properly update all POM versions in release script

- Missing backport from master branch
- Previous version missed quickstart archetype poms


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/2cd06181
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/2cd06181
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/2cd06181

Branch: refs/heads/release-0.10
Commit: 2cd06181f217fd9149eadbff40f9e7c441eb555c
Parents: 0c8a9ce
Author: Ufuk Celebi <uce@apache.org>
Authored: Mon Feb 8 15:37:54 2016 +0100
Committer: Ufuk Celebi <uce@apache.org>
Committed: Mon Feb 8 15:37:55 2016 +0100

----------------------------------------------------------------------
 tools/create_release_files.sh | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/2cd06181/tools/create_release_files.sh
----------------------------------------------------------------------
diff --git a/tools/create_release_files.sh b/tools/create_release_files.sh
index 772c698..1ace902 100755
--- a/tools/create_release_files.sh
+++ b/tools/create_release_files.sh
@@ -101,12 +101,11 @@ prepare() {
 # create source package
 make_source_release() {
 
-  #find . -name 'pom.xml' -type f -exec sed -i 's#<version>$OLD_VERSION</version>#<version>$NEW_VERSION</version>#'
{} \;
-  if [ "$(uname)" == "Darwin" ]; then
-      find . -name 'pom.xml' -type f -exec sed -i "" 's#<version>'$OLD_VERSION'</version>#<version>'$NEW_VERSION'</version>#'
{} \;
-  else
-      find . -name 'pom.xml' -type f -exec sed -i    's#<version>'$OLD_VERSION'</version>#<version>'$NEW_VERSION'</version>#'
{} \;
-  fi
+  #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>#'
{} \;
+
+  #change version in quickstart archetypes
+  find . -name 'pom.xml' -type f -exec perl -pi -e 's#<flink.version>'$OLD_VERSION'</flink.version>#<flink.version>'$NEW_VERSION'</flink.version>#'
{} \;
 
   git commit --author="$GIT_AUTHOR" -am "Commit for release $RELEASE_VERSION"
   git remote add asf_push https://$USER_NAME@git-wip-us.apache.org/repos/asf/flink.git


Mime
View raw message