Repository: flink Updated Branches: refs/heads/release-1.3.3-rc2 [created] 93e9a6ea4
[hotfix] Ensure pristine release in tools/releasing/create_source_release.sh Project: http://git-wip-us.apache.org/repos/asf/flink/repo Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/99c0353a Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/99c0353a Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/99c0353a Branch: refs/heads/release-1.3.3-rc2 Commit: 99c0353a34c09af5bedb73f525f691dd7e78fcdd Parents: b2437f8 Author: Aljoscha Krettek <[email protected]> Authored: Mon Nov 27 16:27:29 2017 +0100 Committer: Tzu-Li (Gordon) Tai <[email protected]> Committed: Wed Mar 14 13:09:43 2018 +0800 ---------------------------------------------------------------------- tools/releasing/create_source_release.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flink/blob/99c0353a/tools/releasing/create_source_release.sh ---------------------------------------------------------------------- diff --git a/tools/releasing/create_source_release.sh b/tools/releasing/create_source_release.sh index 2b29527..33b4e51 100755 --- a/tools/releasing/create_source_release.sh +++ b/tools/releasing/create_source_release.sh @@ -49,10 +49,15 @@ cd .. echo "Creating source package" +# create a temporary git clone to ensure that we have a pristine source release +git clone . flink-tmp-clone +cd flink-tmp-clone + rsync -a \ --exclude ".git" --exclude ".gitignore" --exclude ".gitattributes" --exclude ".travis.yml" \ --exclude "deploysettings.xml" --exclude "CHANGELOG" --exclude ".github" --exclude "target" \ --exclude ".idea" --exclude "*.iml" --exclude ".DS_Store" --exclude "build-target" \ + --exclude "docs/content" --exclude ".rubydeps" \ . flink-$RELEASE_VERSION tar czf flink-${RELEASE_VERSION}-src.tgz flink-$RELEASE_VERSION @@ -60,4 +65,6 @@ gpg --armor --detach-sig flink-$RELEASE_VERSION-src.tgz $MD5SUM flink-$RELEASE_VERSION-src.tgz > flink-$RELEASE_VERSION-src.tgz.md5 $SHASUM flink-$RELEASE_VERSION-src.tgz > flink-$RELEASE_VERSION-src.tgz.sha -rm -rf flink-$RELEASE_VERSION +mv flink-$RELEASE_VERSION-src.* ../ +cd .. +rm -r flink-tmp-clone
