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

MNT: FSLMACHTYPE is no longer used by anything

parent f1fea38f
No related branches found
No related tags found
1 merge request!3Rf/copyrights
......@@ -7,8 +7,7 @@
# SHBASECOPYRIGHT
FSLCONFDIR=$FSLDIR/config
FSLMACHTYPE=`$FSLDIR/etc/fslconf/fslmachtype.sh`
export FSLCONFDIR FSLMACHTYPE
export FSLCONFDIR
source $FSLDIR/etc/fslconf/fsl.sh
# FSL configuration file
# FSL configuration file
# - to be sourced by the user, typically in .bashrc or equivalent
# - note that the user should set
# - note that the user should set
# Written by Mark Jenkinson
# FMRIB Analysis Group, University of Oxford
......@@ -16,7 +16,7 @@
# to write files with a different format
setenv FSLOUTPUTTYPE NIFTI_GZ
# Comment out the definition of FSLMULTIFILEQUIT to enable
# Comment out the definition of FSLMULTIFILEQUIT to enable
# FSL programs to soldier on after detecting multiple image
# files with the same basename ( e.g. epi.hdr and epi.nii )
setenv FSLMULTIFILEQUIT TRUE
......@@ -31,9 +31,9 @@ setenv FSLWISH $FSLDIR/bin/fslwish
# The following variables are used for running code in parallel across
# several machines ( i.e. for FDT )
setenv FSLLOCKDIR
setenv FSLMACHINELIST
setenv FSLREMOTECALL
setenv FSLLOCKDIR
setenv FSLMACHINELIST
setenv FSLREMOTECALL
# The following variables are used to configure CUDA capable queues - if you
# are using Grid Engine then this queue will be used to enqueue tasks that
......@@ -43,8 +43,6 @@ setenv FSLGECUDAQ cuda.q
# Set up development variables (not for the faint-hearted)
# Uncomment the following if you wish to compile FSL source code
#setenv FSLCONFDIR $FSLDIR/config
#setenv FSLMACHTYPE `$FSLDIR/etc/fslconf/fslmachtype.sh`
###################################################
### Add other global environment variables here ###
......
#!/bin/sh
# FSL Host type identifier
# - Used by several scripts to identify the host type for build environment
# Written by Duncan Mortimer
# FMRIB Analysis Group, University of Oxford
# SHCOPYRIGHT
#### Identify machine ####
machtype=""
system_type=`uname -s`
case ${system_type} in
SunOS)
AWK=nawk
;;
*)
AWK=awk
;;
esac
gcc_version=`gcc -dumpversion 2> /dev/null`
if [ $? -eq 0 ]; then
# GCC is installed
gcc_version=`echo $gcc_version | $AWK -F . '{ printf "%s.%s", $1,$2 }'`
gcc_host=`gcc -dumpmachine`
gcc_cpu_type=`echo $gcc_host | $AWK -F - '{ printf "%s", $1; }'`
gcc_os_vendor=`echo $gcc_host | $AWK -F - '{ printf "%s", $2; }'`
gcc_os_name=`echo $gcc_host | $AWK -F - '{ printf "%s", $3; }'`
case ${system_type} in
Darwin)
# We are going to build a universal (ppc32, ppc64, x86_32, x86_64)
# combined binary, so we only need 1 host type
os_release=`uname -r | $AWK -F . '{ printf "%s", $1 }'`
if [ $os_release -ge 12 ]; then
# Using LLVM/clang from now on
llvm_vstr=`cc -v 2>&1`
# Find the LLVM version and reduce to major.minor version number
llvm_v=`echo ${llvm_vstr} | awk '{ print $4 }' | cut -d . -f 1,2`
# Find the LLVM major version number
llvm_maj=`echo ${llvm_v} | cut -d . -f 1`
if [ ${llvm_maj} -ge 7 ]; then
os_v=`echo ${llvm_vstr} | awk '{ print $7 }' | awk -F. '{ print $1 }' | sed 's/x86_64-//'`
else
os_v=`echo ${llvm_vstr} | awk '{ print $11 }' | awk -F. '{ print $1 }' | sed 's/x86_64-//'`
fi
machtype=${os_v}-llvm${llvm_v}
elif [ $os_release -ge 8 ]; then
# This is 10.4 so Universal builds possible
gcc_host="${gcc_os_vendor}-${gcc_os_name}"
# Note, for BSDish platforms, gcc_os_name includes a version
machtype=${gcc_host}-gcc${gcc_version}
else
# Prior to Tiger and gcc4, things were a mess...
gcc_host="${gcc_cpu_type}-${gcc_os_vendor}"
machtype=${gcc_host}-gcc${gcc_version}
# Note, gcc_os_vendor in this case is actually gcc_os_name above
fi
;;
Linux)
if [ "${gcc_cpu_type}" = "x86_64" -o "${gcc_cpu_type}" = "x86-64" ]; then
gcc_host="${gcc_os_name}_64"
elif [ `echo ${gcc_cpu_type} | grep i.86` ]; then
gcc_host="${gcc_os_name}_32"
else
gcc_host="${gcc_cpu_type}-${gcc_os_vendor}-${gcc_os_name}"
fi
machtype=${gcc_host}-gcc${gcc_version}
;;
*)
gcc_host="${gcc_cpu_type}-${gcc_os_vendor}-${gcc_os_name}"
machtype=${gcc_host}-gcc${gcc_version}
;;
esac
fi
echo ${machtype}
exit 0
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