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

RF: Tweak wrapper create scripts to accommodate GUI wrappers

parent 15548351
No related branches found
No related tags found
1 merge request!20Rf/gui wrappers
......@@ -66,6 +66,20 @@ 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 [ "$sourceScript" = *"_gui" ] && [ ! -f "$sourceScript" ]; then
sourceScript=${sourceScript/_gui/}
fi
targetScript="${FSLDIR}/share/fsl/bin/$script"
if [ ! -f "$sourceScript" ]; then
......
......@@ -32,6 +32,11 @@ fi
for script in $targets; do
targetScript="${FSLDIR}/share/fsl/bin/$script"
# See comment about FSL GUIs in post-link.sh
if [ "$targetScript" = *"_gui" ] && [ ! -f "$targetScript" ]; then
targetScript=${targetScript/_gui/}
fi
if [ -f "$targetScript" ]; then
rm "$targetScript"
fi
......
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