Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xxx-R6-1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
synApps_6_1_Working
xxx-R6-1
Commits
4ee9382c
Commit
4ee9382c
authored
7 years ago
by
Pete Jemian
Browse files
Options
Downloads
Patches
Plain Diff
add paths only if they exist,
parent
a8f16b2e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
EXAMPLE_start_caQtDM.sh
+17
-8
17 additions, 8 deletions
EXAMPLE_start_caQtDM.sh
with
17 additions
and
8 deletions
EXAMPLE_start_caQtDM.sh
+
17
−
8
View file @
4ee9382c
...
@@ -21,14 +21,23 @@ function addModule
...
@@ -21,14 +21,23 @@ function addModule
# module_path is the path defined for that symbol in the RELEASE file
# module_path is the path defined for that symbol in the RELEASE file
module
=
'$'
$1
module
=
'$'
$1
module_path
=
`
eval echo
$module
`
module_path
=
`
eval echo
$module
`
if
[
""
==
"
${
QTDMDP
}
"
]
;
then
QTDMDP
=
.
if
[
""
!=
"
${
module
}
"
]
;
then
fi
# module is required
if
[
""
!=
"
${
module_path
}
"
]
;
then
addition
=
${
module_path
}
if
[
""
!=
"
$2
"
]
;
then
if
[
""
!=
"
$2
"
]
;
then
module_path
=
${
module_path
}
/
$2
# optional subdirectory path
fi
addition+
=
/
$2
QTDMDP
=
${
QTDMDP
}
:
${
module_path
}
fi
if
[
-d
"
${
addition
}
"
]
;
then
# proceed ONLY if new addition path exists
# Then, can define paths to all area detectors specific screens
if
[
""
==
"
${
QTDMDP
}
"
]
;
then
# no existing path defined, start here
QTDMDP
=
.
fi
QTDMDP+
=
:
${
addition
}
fi
fi
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