You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by jh...@apache.org on 2018/04/18 07:49:04 UTC

calcite-avatica-go git commit: Add 'apache-' prefix to dist files

Repository: calcite-avatica-go
Updated Branches:
  refs/heads/master d2732965f -> cb2d4cb45


Add 'apache-' prefix to dist files


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/cb2d4cb4
Tree: http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/tree/cb2d4cb4
Diff: http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/diff/cb2d4cb4

Branch: refs/heads/master
Commit: cb2d4cb4596d5850bd0eb10c9c7697b679aabc2d
Parents: d273296
Author: Julian Hyde <jh...@apache.org>
Authored: Wed Apr 18 00:46:22 2018 -0700
Committer: Julian Hyde <jh...@apache.org>
Committed: Wed Apr 18 00:46:22 2018 -0700

----------------------------------------------------------------------
 make-release-artifacts.sh | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/blob/cb2d4cb4/make-release-artifacts.sh
----------------------------------------------------------------------
diff --git a/make-release-artifacts.sh b/make-release-artifacts.sh
index c9a5e2c..d9d3d7a 100755
--- a/make-release-artifacts.sh
+++ b/make-release-artifacts.sh
@@ -6,21 +6,25 @@ mkdir -p dist
 git fetch --tags
 
 # Get latest tag name
-latestTag=$(git describe --tags `git rev-list --tags --max-count=1`)
+latestTag=$(git describe --tags `git rev-list --tags --max-count=1` | sed -e 's/-rc[0-9][0-9]*//')
+product=apache-calcite-avatica-go
+tarFile=$product-src-$latestTag.tar.gz
 
 # Checkout latest tag
 git checkout $latestTag
 
 # Make tar
-tar -zcvf dist/calcite-avatica-go-src-$latestTag.tar.gz --transform "s/^\./calcite-avatica-go-src-$latestTag/g" --exclude "dist" .
+tar -zcvf dist/$tarFile --transform "s/^\./$product-src-$latestTag/g" --exclude "dist" --exclude ".git" .
 
 cd dist
 
 # Calculate MD5
-gpg --print-md MD5 calcite-avatica-go-src-$latestTag.tar.gz > calcite-avatica-go-src-$latestTag.tar.gz.md5
+gpg --print-md MD5 $tarFile > $tarFile.md5
 
 # Calculate SHA256
-gpg --print-md SHA256 calcite-avatica-go-src-$latestTag.tar.gz > calcite-avatica-go-src-$latestTag.tar.gz.sha256
+gpg --print-md SHA256 $tarFile > $tarFile.sha256
 
 # Sign
-gpg --armor --output calcite-avatica-go-src-$latestTag.gz.asc --detach-sig calcite-avatica-go-src-$latestTag.tar.gz 
+gpg --armor --output $tarFile.asc --detach-sig $tarFile
+
+# End