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 <[email protected]>
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 <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
---
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