git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: calcite-avatica-go git commit: Update release script to also produce a zip archive


We should talk about this. For Calcite and Avatica, we have to produce .tar.gz and .zip because we always have.

But how about producing just one archive, in a more modern format, say .tar.bz2 or .tar.xz? Most people have those compressors installed. It makes the release process more straightforward for us (because there are fewer files to review and upload).

(I’m talking about next release here. This release has sailed.)

Julian

> On Apr 25, 2018, at 00:09, francischuang@xxxxxxxxxx wrote:
> 
> Repository: calcite-avatica-go
> Updated Branches:
> refs/heads/master 4b50122b0 -> 1ed6f83b4
> 
> 
> Update release script to also produce a zip archive
> 
> 
> Project: http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/repo
> Commit: http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/commit/1ed6f83b
> Tree: http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/tree/1ed6f83b
> Diff: http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/diff/1ed6f83b
> 
> Branch: refs/heads/master
> Commit: 1ed6f83b457f5085c645afda35e7b6b57345b591
> Parents: 4b50122
> Author: Francis Chuang <francischuang@xxxxxxxxxx>
> Authored: Wed Apr 25 17:09:10 2018 +1000
> Committer: Francis Chuang <francischuang@xxxxxxxxxx>
> Committed: Wed Apr 25 17:09:10 2018 +1000
> 
> ----------------------------------------------------------------------
> make-release-artifacts.sh | 23 +++++++++++++++++++++--
> 1 file changed, 21 insertions(+), 2 deletions(-)
> ----------------------------------------------------------------------
> 
> 
> http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/blob/1ed6f83b/make-release-artifacts.sh
> ----------------------------------------------------------------------
> diff --git a/make-release-artifacts.sh b/make-release-artifacts.sh
> index 7a2f29e..657a4d8 100755
> --- a/make-release-artifacts.sh
> +++ b/make-release-artifacts.sh
> @@ -52,6 +52,7 @@ done
> tagWithoutRC=$(echo $tag | sed -e 's/-rc[0-9][0-9]*//')
> product=apache-calcite-avatica-go
> tarFile=$product-src-$tagWithoutRC.tar.gz
> +zipFile=$product-src-$tagWithoutRC.zip
> releaseDir=$product-$tag
> 
> #Make release dir
> @@ -66,12 +67,30 @@ fi
> # Make tar
> tar -zcvf dist/$releaseDir/$tarFile --transform "s/^\./$product-src-$tagWithoutRC/g" --exclude "dist" --exclude ".git" .
> 
> -cd dist/$releaseDir
> +# Make temp dir
> +mkdir -p dist/tmp/$product-src-$tagWithoutRC
> +
> +# Make a temporary copy
> +cp -r `ls -A | grep -v "dist"` dist/tmp/$product-src-$tagWithoutRC/
> +
> +cd dist/tmp/
> +
> +# Make zip
> +zip -r ../$releaseDir/$zipFile . -x /$product-src-$tagWithoutRC/.git/*
> +
> +cd ..
> +
> +# Delete temp dir
> +rm -rf tmp
> +
> +cd $releaseDir
> 
> # Calculate SHA256
> gpg --print-md SHA256 $tarFile > $tarFile.sha256
> +gpg --print-md SHA256 $zipFile > $zipFile.sha256
> 
> # Sign
> gpg --armor --output $tarFile.asc --detach-sig $tarFile
> +gpg --armor --output $zipFile.asc --detach-sig $zipFile
> 
> -# End
> +# End
> \ No newline at end of file
>