You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ko...@apache.org on 2021/11/19 07:15:03 UTC

[arrow] branch master updated: ARROW-14777: [Release] Enable to run on RHEL derivatives

This is an automated email from the ASF dual-hosted git repository.

kou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/master by this push:
     new 607464d  ARROW-14777: [Release] Enable to run on RHEL derivatives
607464d is described below

commit 607464d90ba4bc319f1566101e884d21cc17e469
Author: Benson Muite <bk...@users.noreply.github.com>
AuthorDate: Fri Nov 19 16:11:43 2021 +0900

    ARROW-14777: [Release] Enable to run on RHEL derivatives
    
    Closes #11743 from bkmgit/ARROW-14777
    
    Authored-by: Benson Muite <bk...@users.noreply.github.com>
    Signed-off-by: Sutou Kouhei <ko...@clear-code.com>
---
 dev/release/02-source.sh | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/dev/release/02-source.sh b/dev/release/02-source.sh
index 89c8e98..a5cf642 100755
--- a/dev/release/02-source.sh
+++ b/dev/release/02-source.sh
@@ -85,11 +85,20 @@ if [ ${SOURCE_RAT} -gt 0 ]; then
   "${SOURCE_DIR}/run-rat.sh" ${tarball}
 fi
 
+if type shasum >/dev/null 2>&1; then
+  sha256_generate="shasum -a 256"
+  sha512_generate="shasum -a 512"
+else
+  sha256_generate="sha256sum"
+  sha512_generate="sha512sum"
+fi
+
+
 if [ ${SOURCE_UPLOAD} -gt 0 ]; then
   # sign the archive
   gpg --armor --output ${tarball}.asc --detach-sig ${tarball}
-  shasum -a 256 $tarball > ${tarball}.sha256
-  shasum -a 512 $tarball > ${tarball}.sha512
+  ${sha256_generate} $tarball > ${tarball}.sha256
+  ${sha512_generate} $tarball > ${tarball}.sha512
 
   # check out the arrow RC folder
   svn co --depth=empty https://dist.apache.org/repos/dist/dev/arrow tmp