Skip to content

Commit e6ae98c

Browse files
committed
Issue #260: initial version of bootstrap.sh script ... make sure GemStone 3.5.0 product tree present and download zipped gsdevkit_launcher solo extent [ci skip]
1 parent 2d15096 commit e6ae98c

File tree

3 files changed

+49
-0
lines changed

3 files changed

+49
-0
lines changed

alt_bin/bootstrap.sh

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#! /usr/bin/env bash
2+
#=========================================================================
3+
# Copyright (c) 2019 GemTalk Systems, LLC <[email protected]>.
4+
#
5+
# MIT license: https://github.com/GsDevKit/GsDevKit_home/blob/master/license.txt
6+
#=========================================================================
7+
8+
theArgs="$*"
9+
source "${GS_HOME}/bin/private/shFeedback"
10+
start_banner
11+
12+
#
13+
# This script does the dirty work needed to get to the point where
14+
# gsdevkit_launcher scripts can be run
15+
16+
set -x # so we can see what is going on
17+
18+
gsdevkit_launcher_version="v0.10.0"
19+
20+
cd $GS_HOME/shared/gemstone
21+
22+
# make sure 3.5.0 is installed and create symbolic link to the 3.5.0 product tree
23+
$GS_HOME/bin/downloadGemStone 3.5.0
24+
if [ ! -d "$GS_HOME/shared/downloads/products/GemStone64Bit3.5.0-x86_64.Linux" ] ; then
25+
# not Linux
26+
if [ ! -d "$GS_HOME/shared/downloads/products/GemStone64Bit3.5.0-i386.Darwin" ] ; then
27+
# not Mac
28+
exit_1_banner "gsdevkit_launcher currently supported only on Mac or Linux platforms"
29+
else
30+
ln -s $GS_HOME/shared/downloads/products/GemStone64Bit3.5.0-i386.Darwin product
31+
fi
32+
else
33+
ln -s $GS_HOME/shared/downloads/products/GemStone64Bit3.5.0-x86_64.Linux product
34+
fi
35+
36+
# download and install the gsdevkit_launcher solo extent
37+
pushd snapshots
38+
curl -L -O -s -S "https://github.com/dalehenrich/st_launcher/releases/download/$gsdevkit_launcher_version/extent0.gsdevkit_launcher.dbf.zip"
39+
rm -rf extent0.gsdevkit_launcher.dbf
40+
unzip -q extent0.gsdevkit_launcher.dbf.zip
41+
popd
42+
43+
# End of script
44+
exit_0_banner "...finished"

shared/repos/GsDevKit_launcher/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ cd $GS_HOME
3030
git fetch --all
3131
git checkout issue_260
3232
33+
# bootstrap gsdevkit_launcher script support
34+
$GS_HOME/alt_bin/bootstrap.sh
35+
3336
# add alt_bin and alt_bin/examples to your path
3437
. alt_bin/defHome_PATH.env
3538

shared/repos/GsDevKit_launcher/bootstrapping/gemstone/gsdevkit_home/newBuild_SystemUser_gsdevkit_launcher_deployer

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ cp extents/extent0.dbf snapshots/extent0.gsdevkit_launcher.dbf
1515
# cp the solo extent to snapshots directory
1616
chmod oug-w snapshots/extent0.gsdevkit_launcher.dbf
1717
cp -f snapshots/extent0.gsdevkit_launcher.dbf $GS_HOME/shared/gemstone/snapshots/
18+
rm -rf $GS_HOME/shared/gemstone/snapshots/extent0.gsdevkit_launcher.dbf.zip
19+
zip $GS_HOME/shared/gemstone/snapshots/extent0.gsdevkit_launcher.dbf.zip snapshots/extent0.gsdevkit_launcher.dbf
1820

1921
startStone $GEMSTONE_NAME # in 3.5.1 snapshot up above
2022

0 commit comments

Comments
 (0)