[Squeakland] Naming Environment-Variables in etoys.sh
Markus Schlager
m.slg at gmx.de
Mon Sep 15 11:54:32 PDT 2008
Hallo Michael,
I'm just trying to set up Etoys on our Linux-computers at school. There I
need to change the value of $SQUEAK_USERDIR. The easiest way in this case
would be /etc/environment. I understand that the environment-variable used
by the squeak-vm has to have the name SQUEAK_USERDIR, hasn't it? But we're
using 'real' Squeak as well and I'd love to have different USERDIRs for
these different images. Hence I'd like to have different
environment-variables.
Right now, etoys.sh looks like
----8X--------------------------------------------------------------
[ -z "$SQUEAK_SECUREDIR" ] && export SQUEAK_SECUREDIR="$HOME/.etoys"
[ -z "$SQUEAK_USERDIR" ] && export SQUEAK_USERDIR="$HOME/Etoys"
---------------------------------------------------------X8---------
I'd prefer Etoys to use ETOYS_SECUREDIR and ETOYS_USERDIR (since it's
Etoys, not Squeak :) ). etoys.sh could look like
----8X---------------------------------------------------------------
if [ -z "$ETOYS_SECUREDIR" ]
then
export SQUEAK_SECUREDIR="$HOME/.etoys"
else
export SQUEAK_SECUREDIR="$ETOYS_SECUREDIR"
fi
if [ -z "$ETOYS_USERDIR" ]
then
export SQUEAK_USERDIR="$HOME/Etoys"
else
export SQUEAK_USERDIR="$ETOYS_USERDIR"
fi
---------------------------------------------------------X8---------
Markus
-----------------------------------------------
Markus Schlager m.slg at gmx.de
More information about the Squeakland
mailing list