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 2017/11/27 15:29:00 UTC

flink git commit: [hotfix] Ensure pristine release in tools/releasing/create_source_release.sh

Repository: flink
Updated Branches:
  refs/heads/master bb1b0bfde -> c940d5eff


[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/c940d5ef
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/c940d5ef
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/c940d5ef

Branch: refs/heads/master
Commit: c940d5eff9897796625a696ed2989aed52c39ebd
Parents: bb1b0bf
Author: Aljoscha Krettek <al...@gmail.com>
Authored: Mon Nov 27 16:27:29 2017 +0100
Committer: Aljoscha Krettek <al...@gmail.com>
Committed: Mon Nov 27 16:28:49 2017 +0100

----------------------------------------------------------------------
 tools/releasing/create_source_release.sh | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/c940d5ef/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