[Glass] How to convert this source to GsDevKit_stones ?

Marten Feldtmann m at feldtmann.online
Tue Nov 26 08:47:04 PST 2024


Hello,

I am in the process of switching from GsDevKit_home to GsDevKit_stones
(for my runtime environments) and I have lots of codes here, that
contain the following sequence:

...

source $GS_HOME/bin/defGsDevKit.env
source $GS_HOME/server/stones/$1/defStone.env $1
if [ -s $GS_HOME/server/stones/$1/product/seaside/etc/gemstone.secret ];
then
     . $GS_HOME/server/stones/$1/product/seaside/etc/gemstone.secret
else
     echo 'Missing password file $GS_HOME/server/stones/$1/defStone.env'
     exit 1
fi

cat << EOF | topaz -l -T 500000 -u dev_migrate_${1}
set user DataCurator pass $GEMSTONE_CURATOR_PASS gems $1

...


it is used to execute topaz code against a specific stone named $1. I
assume, that for GsDevKit_stones I need the registry-name as an
additional parameter $2. But how do I make the calls to set the
environment correctly, so that the topaz code can be executed.

I assume to read the specific ston file ($1.ston) for the specific stone
located in the registry folder
($STONES_DATA_HOME/gsdevkit_stones/stones/$2/$1.ston). Within the ston
file I look for the value of #root and source the "#root/customenv"
within my bash script - then $GEMSTONE is set and topaz-code can be
executed.

Or is there a more simplier way ??


Thanks,


Marten



More information about the Glass mailing list