Skip to content

Commit

Permalink
deprecate dev/downloadGemStone.sh in favor or bin/install.sh ... inst…
Browse files Browse the repository at this point in the history
…all.sh now takes an optional GemStone version argument
  • Loading branch information
dalehenrich committed Sep 28, 2023
1 parent 66f1392 commit 15e9044
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 30 deletions.
5 changes: 4 additions & 1 deletion bin/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
31 changes: 2 additions & 29 deletions dev/downloadGemStone.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 15e9044

Please sign in to comment.