Skip to content
Snippets Groups Projects
Commit fc49cc9b authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

RF: In official FSL installs, fsl-devel.sh activates the $FSLDIR conda

environment. Also sets default values for FSLDEVDIR and FSLCONFDIR if
not set by the user.
parent c4fa7cc4
No related branches found
No related tags found
1 merge request!6Mnt/devel base environment
Pipeline #7002 passed
# FSL configuration file for developers # FSL configuration file for developers
# - to be sourced by the user, typically in .bashrc or equivalent
# #
# Written by Mark Jenkinson # This file must be sourced in order to compile
# FMRIB Analysis Group, University of Oxford # Makefile-based FSL projects.
#
# $FSLDIR must be set before this script is called.
#
# Standard environment configuration for developing FSL is:
# export FSLDIR=/usr/local/fsl
# source $FSLDIR/etc/fslconf/fsl-devel.sh
#
# SHBASECOPYRIGHT # SHBASECOPYRIGHT
FSLCONFDIR=$FSLDIR/config
export FSLCONFDIR # If this is an official (fslinstaller-installed)
# FSL installation, we activate the $FSLDIR conda
# environment so that we have access to its compiler
# toolchain (if one is installed).
if [ -e $FSLDIR/share/fsl/base_environment ]; then
baseenv=$(cat $FSLDIR/share/fsl/base_environment)
source $baseenv/bin/activate $FSLDIR
fi
# FSLCONFDIR contains the FSL Makefile machinery
# for compiling and installing FSL Makefile-based
# projects.
if [ ! -d "$FSLCONFDIR" ]; then
export FSLCONFDIR=$FSLDIR/config
fi
# FSLDEVDIR is an optional installation destination
# for development, so that locally built projects
# can be installed separately from FSLDIR.
if [ ! -d "$FSLDEVDIR" ]; then
export FSLDEVDIR=$FSLDIR
fi
source $FSLDIR/etc/fslconf/fsl.sh source $FSLDIR/etc/fslconf/fsl.sh
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment