Skip to content

Commit

Permalink
rf: Update FSL configuration for FSL >= 6.0.6 - default installation …
Browse files Browse the repository at this point in the history
…location

is now $HOME/fsl/, and FSL executables are located in $FSLDIR/share/fsl/bin/
  • Loading branch information
pauldmccarthy committed Mar 16, 2023
1 parent e812711 commit c846ec6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion distribution/FreeSurferEnv.csh
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ if(! $?FSL_DIR || $FS_OVERRIDE) then
setenv FSL_DIR /usr/pubsw/packages/fsl/current
else if ( -e /usr/local/pubsw/packages/fsl/current) then
setenv FSL_DIR /usr/local/pubsw/packages/fsl/current
else if ( -e $HOME/fsl); then
setenv FSL_DIR $HOME/fsl
else if ( -e /usr/local/fsl) then
setenv FSL_DIR /usr/local/fsl
endif
Expand Down Expand Up @@ -430,7 +432,13 @@ endif
### ----------- FSL ------------ ####
if ( $?FSL_DIR ) then
setenv FSLDIR $FSL_DIR
setenv FSL_BIN $FSL_DIR/bin
# FSL >= 6.0.6
if ( -d $FSL_DIR/share/fsl/bin) then
setenv FSL_BIN $FSL_DIR/share/fsl/bin
# FSL <= 6.0.5.2
else
setenv FSL_BIN $FSL_DIR/bin
endif
if(! -d $FSL_BIN) then
if( $output ) then
echo "WARNING: $FSL_BIN does not exist.";
Expand Down
10 changes: 9 additions & 1 deletion distribution/FreeSurferEnv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ if [[ -z "$FSL_DIR" || $FS_OVERRIDE != 0 ]]; then
export FSL_DIR=/usr/pubsw/packages/fsl/current
elif [ -e /usr/local/pubsw/packages/fsl/current ]; then
export FSL_DIR=/usr/local/pubsw/packages/fsl/current
elif [ -e $HOME/fsl ]; then
export FSL_DIR=$HOME/fsl
elif [ -e /usr/local/fsl ]; then
export FSL_DIR=/usr/local/fsl
fi
Expand Down Expand Up @@ -437,7 +439,13 @@ fi
### ----------- FSL ------------ ####
if [ -n "$FSL_DIR" ]; then
export FSLDIR=$FSL_DIR
export FSL_BIN=$FSL_DIR/bin
# FSL >= 6.0.6
if [ -d $FSL_BIN/share/fsl/bin ]; then
export FSL_BIN=$FSL_DIR/share/fsl/bin
# FSL <= 6.0.5.2
else
export FSL_BIN=$FSL_DIR/bin
fi
if [ ! -d $FSL_BIN ]; then
if [[ $output == 1 ]]; then
echo "WARNING: $FSL_BIN does not exist.";
Expand Down

0 comments on commit c846ec6

Please sign in to comment.