2009-09-30 13:11:05 +00:00
|
|
|
addSlibPath () {
|
|
|
|
if test -f "$1/lib/slib/slibcat"
|
|
|
|
then
|
2021-11-14 02:54:33 +00:00
|
|
|
export SCHEME_LIBRARY_PATH="$1/lib/slib/"
|
|
|
|
echo "SLIB found in \`$1'; setting \$SCHEME_LIBRARY_PATH to \`$SCHEME_LIBRARY_PATH'"
|
2009-09-30 13:11:05 +00:00
|
|
|
|
2021-11-14 02:54:33 +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'"
|
2009-09-30 13:11:05 +00:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2017-08-10 22:22:07 +00:00
|
|
|
addEnvHooks "$hostOffset" addSlibPath
|