From 15e9044ab3da6f903f18eee5a1dd1741cd097dfe Mon Sep 17 00:00:00 2001 From: Dale Henrichs Date: Thu, 28 Sep 2023 10:22:46 -0700 Subject: [PATCH] deprecate dev/downloadGemStone.sh in favor or bin/install.sh ... install.sh now takes an optional GemStone version argument --- bin/install.sh | 5 ++++- dev/downloadGemStone.sh | 31 ++----------------------------- 2 files changed, 6 insertions(+), 30 deletions(-) diff --git a/bin/install.sh b/bin/install.sh index 350043a..e921e11 100755 --- a/bin/install.sh +++ b/bin/install.sh @@ -2,7 +2,10 @@ set -e -gemstoneversion=3.7.0 +gemstoneversion="$1" +if [ "$gemstoneversion"x = "x" ]; then + gemstoneversion=3.7.0 +fi PLATFORM="`uname -sm | tr ' ' '-'`" case "$PLATFORM" in diff --git a/dev/downloadGemStone.sh b/dev/downloadGemStone.sh index 670c823..dc01d18 100755 --- a/dev/downloadGemStone.sh +++ b/dev/downloadGemStone.sh @@ -1,31 +1,4 @@ #! /usr/bin/env bash -vers="$1" -echo "installing GemStone version $vers in `pwd`" -# set -x -if [ "$PLATFORM" = "macos-10.15" ] ; then - dl_format=zip - name=GemStone64Bit${vers}-i386.Darwin - if [ "$vers" \> "3.5.2" ] ; then - dl_format=dmg - fi - dl_gss_file=${name}.${dl_format} - curl -O -s -S https://downloads.gemtalksystems.com/pub/GemStone64/${vers}/$dl_gss_file - case "$dl_format" in - zip) - unzip -q $dl_gss_file - ;; - dmg) - attach_result=`hdiutil attach -plist $dl_gss_file` - attach_device=`echo $attach_result | xpath "//dict/array/dict[true]/key[.='dev-entry']/following-sibling::string[1]/text()" 2>/dev/null` - attach_path=`echo $attach_result | xpath "//dict/array/dict[true]/key[.='mount-point']/following-sibling::string[1]/text()" 2>/dev/null` - cp -R "${attach_path}/${gsvers}/${name}" . - hdiutil detach ${attach_device} - ;; - esac -else - name=GemStone64Bit${vers}-x86_64.Linux - zipfile=${name}.zip - curl -O -s -S https://downloads.gemtalksystems.com/pub/GemStone64/${vers}/$zipfile - unzip -q $zipfile -fi +echo "Deprecated use bin/install.sh instead" +exit 1