Skip to content

Commit

Permalink
[hotfix] Ensure pristine release in tools/releasing/create_source_rel…
Browse files Browse the repository at this point in the history
…ease.sh
  • Loading branch information
aljoscha committed Nov 27, 2017
1 parent bb1b0bf commit c940d5e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tools/releasing/create_source_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,22 @@ 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
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

0 comments on commit c940d5e

Please sign in to comment.