Skip to content

Commit

Permalink
[build tools] update release sciprts
Browse files Browse the repository at this point in the history
  • Loading branch information
rmetzger committed Oct 26, 2014
1 parent 90c8469 commit 5e34858
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tools/create_release_files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,27 +45,29 @@ USER_NAME=${USER_NAME:-pwendell}
MVN=${MVN:-mvn}
GPG=${GPG:-gpg}
SHASUM=${SHASUM:-sha512sum}
MD5SUM=${MD5SUM:-$MD5SUM}
MD5SUM=${MD5SUM:-md5sum}
sonatype_user=${sonatype_user:-rmetzger}
sonatype_pw=${sonatype_pw:-XXX}

echo $NEW_VERSION_HADOOP2
sleep 5
#echo $NEW_VERSION_HADOOP2
#sleep 5
#set -e

# create source package

git clone https://github.com/apache/incubator-flink.git flink
cd flink
git checkout -b $RELEASE_BRANCH origin/$RELEASE_BRANCH
git checkout -b "$RELEASE_BRANCH-$RELEASE_CANDIDATE" origin/$RELEASE_BRANCH
rm .gitignore
rm .travis.yml
rm deploysettings.xml
rm CHANGELOG
#rm -rf .git

#find . -name 'pom.xml' -type f -exec sed -i 's#<version>$OLD_VERSION</version>#<version>$NEW_VERSION</version>#' {} \;
find . -name 'pom.xml' -type f -exec sed -i "" 's#<version>'$OLD_VERSION'</version>#<version>'$NEW_VERSION'</version>#' {} \;
# FOR MAC: find . -name 'pom.xml' -type f -exec sed -i "" 's#<version>'$OLD_VERSION'</version>#<version>'$NEW_VERSION'</version>#' {} \;
find . -name 'pom.xml' -type f -exec sed -i 's#<version>'$OLD_VERSION'</version>#<version>'$NEW_VERSION'</version>#' {} \;

git commit --author="Robert Metzger <[email protected]>" -am "Commit for release $RELEASE_VERSION"
# sry for hardcoding my name, but this makes releasing even faster
git remote add asf_push https://[email protected]/repos/asf/incubator-flink.git
Expand Down

0 comments on commit 5e34858

Please sign in to comment.