Skip to content
Snippets Groups Projects

Rf/gui wrappers

Merged Paul McCarthy requested to merge rf/gui-wrappers into master
4 files
+ 86
1
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -66,6 +66,21 @@ fi
for script in $targets; do
sourceScript="${PREFIX}/bin/$script"
# FSL GUIs are called (e.g.) <Command> om Linux,
# but <Command>_gui on macOS, because macOS file
# systems are usually case-sensitive. To work
# around this (and to not accidentally create a
# link called <Command> to <command>), the FSL
# package post link scripts only specify
# <Command>_gui. Here, we remove the _gui suffix
# if no source file exists (in which we are
# likely running on Linux)
if [[ "$script" == *"_gui" ]] && [ ! -f "$sourceScript" ]; then
script=${script/_gui/}
sourceScript="${PREFIX}/bin/$script"
fi
targetScript="${FSLDIR}/share/fsl/bin/$script"
if [ ! -f "$sourceScript" ]; then
Loading