Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
base
Commits
3351bab8
Commit
3351bab8
authored
3 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
RF: Tweak wrapper create scripts to accommodate GUI wrappers
parent
15548351
No related branches found
No related tags found
1 merge request
!20
Rf/gui wrappers
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
share/fsl/sbin/createFSLWrapper
+14
-0
14 additions, 0 deletions
share/fsl/sbin/createFSLWrapper
share/fsl/sbin/removeFSLWrapper
+5
-0
5 additions, 0 deletions
share/fsl/sbin/removeFSLWrapper
with
19 additions
and
0 deletions
share/fsl/sbin/createFSLWrapper
+
14
−
0
View file @
3351bab8
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
share/fsl/sbin/removeFSLWrapper
+
5
−
0
View file @
3351bab8
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment