forked from renggli/pharo-builder
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild_image.sh
executable file
·67 lines (57 loc) · 1.74 KB
/
build_image.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/bash
#
# build_image.sh -- Downloads and installs the desired Smalltalk
#
# Copyright (c) 2012,2013 VMware, Inc. All Rights Reserved <[email protected]>.
# Copyright (c) 2013-2014 GemTalk Systems, LLC <[email protected]>.
#
# Environment variables defined in .travis.yml
#
# Copyright (c) 2012,2013 VMware, Inc. All Rights Reserved <[email protected]>.
#
set -e # exit on error
case "$ST" in
Pharo*|Squeak*)
./build_client_image.sh
if [[ $? != 0 ]] ; then exit 1; fi
exit 0
;;
GemStone-2.4.*)
GEMSTONE_VERSION_NAME="${ST:9}"
KEY_PATH="./gemstone/GemStone64Bit2.4.0-x86_64.Linux.key"
;;
GemStone-3.0.1)
GEMSTONE_VERSION_NAME="3.0.1"
KEY_PATH="./gemstone/GemStone64Bit3.0.0-x86_64.Linux.key"
;;
GemStone-3.1.0.*)
GEMSTONE_VERSION_NAME="${ST:9}"
KEY_PATH="./gemstone/GemStone64Bit3.1.0-x86_64.Linux.key"
;;
GemStone-3.2.*)
GEMSTONE_VERSION_NAME="${ST:9}"
KEY_PATH="./gemstone/GemStone64Bit3.2.0-x86_64.Linux.key"
;;
GemStone-3.3.*)
GEMSTONE_VERSION_NAME="${ST:9}"
KEY_PATH="./gemstone/GemStone64Bit3.3.0-x86_64.Linux.key"
;;
# unknown
*) echo "Unknown Smalltalk version ${ST}"
exit 1
;;
esac
# only GemStone gets here
# uname -a
./installGemstone.sh $GEMSTONE_VERSION_NAME
if [[ $? != 0 ]] ; then exit 1; fi
source /opt/gemstone/product/seaside/defSeaside #set GemStone environment variables
chmod +w /opt/gemstone/product/seaside/etc/gemstone.key
cp $KEY_PATH /opt/gemstone/product/seaside/etc/gemstone.key
cat - >> /opt/gemstone/product/seaside/data/system.conf << EOF
# not needed for 3.1.x not debugging and ignored by 2.4.x
GEM_NATIVE_CODE_ENABLED = TRUE;
EOF
startGemstone
# gslist -lc
# cat /opt/gemstone/log/seaside.log