2020-04-24 23:36:52 +00:00
|
|
|
addSlibPath () {
|
|
|
|
if test -f "$1/lib/slib/slibcat"
|
|
|
|
then
|
2021-12-06 16:07:01 +00:00
|
|
|
export SCHEME_LIBRARY_PATH="$1/lib/slib/"
|
|
|
|
echo "SLIB found in \`$1'; setting \$SCHEME_LIBRARY_PATH to \`$SCHEME_LIBRARY_PATH'"
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
# This is needed so that `(load-from-path "slib/guile.init")' works.
|
|
|
|
export GUILE_LOAD_PATH="$1/lib:$GUILE_LOAD_PATH"
|
|
|
|
echo "SLIB: setting \$GUILE_LOAD_PATH to \`$GUILE_LOAD_PATH'"
|
2020-04-24 23:36:52 +00:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
addEnvHooks "$hostOffset" addSlibPath
|