You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by xi...@apache.org on 2023/02/22 00:08:38 UTC
[tinkerpop] branch 3.5-dev updated: Added Go GLV building to validate-distribution.sh (#1963)
This is an automated email from the ASF dual-hosted git repository.
xiazcy pushed a commit to branch 3.5-dev
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git
The following commit(s) were added to refs/heads/3.5-dev by this push:
new bdb4c2cd2f Added Go GLV building to validate-distribution.sh (#1963)
bdb4c2cd2f is described below
commit bdb4c2cd2f21fdf0900bf809577e9703ea2394ec
Author: Cole Greer <11...@users.noreply.github.com>
AuthorDate: Tue Feb 21 16:08:31 2023 -0800
Added Go GLV building to validate-distribution.sh (#1963)
Also added a header to make the script more mac friendly
---
bin/validate-distribution.sh | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/bin/validate-distribution.sh b/bin/validate-distribution.sh
index 14411e6dcd..5114b41e18 100755
--- a/bin/validate-distribution.sh
+++ b/bin/validate-distribution.sh
@@ -23,6 +23,13 @@
# published KEYS file in order for that aspect of the validation
# to pass.
+if [[ "$OSTYPE" == "darwin"* ]]; then
+ # Some quality of life improvements for mac users
+ # Note it is assumed that GNU grep has been installed via `brew install grep`
+ PATH="$(brew --prefix)/opt/grep/libexec/gnubin:$PATH"
+ sha512sum() { shasum -a 512 "$@"; }
+fi
+
SCRIPT_DIR=$(cd `dirname $0` ; pwd)
TMP_DIR="/tmp/tpdv"
@@ -147,7 +154,7 @@ else
echo "OK"
fi
echo -n "* building project ... "
-touch {gremlin-dotnet,gremlin-dotnet/src,gremlin-dotnet/test,gremlin-python,gremlin-javascript}/.glv
+touch {gremlin-dotnet,gremlin-dotnet/src,gremlin-dotnet/test,gremlin-python,gremlin-javascript,gremlin-go}/.glv
LOG_FILE="${TMP_DIR}/mvn-clean-install-${VERSION}.log"
mvn clean install -q > "${LOG_FILE}" 2>&1 || {
echo "failed"