Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
1794c999
Commit
1794c999
authored
2 years ago
by
Andre Sailer
Browse files
Options
Downloads
Patches
Plain Diff
thisdd4hep: ensure we only prevent real duplicates, not paths that share common content
parent
e5d3392b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmake/thisdd4hep.sh
+1
-1
1 addition, 1 deletion
cmake/thisdd4hep.sh
cmake/thisdd4hep_only.sh
+1
-1
1 addition, 1 deletion
cmake/thisdd4hep_only.sh
with
2 additions
and
2 deletions
cmake/thisdd4hep.sh
+
1
−
1
View file @
1794c999
...
...
@@ -34,7 +34,7 @@ dd4hep_add_path() {
local
path_prefix
=
${
2
}
eval
path_value
=
\$
$path_name
# Prevent duplicates
path_value
=
`
echo
${
path_value
}
|
tr
:
'\n'
|
grep
-v
"
${
path_prefix
}
"
|
tr
'\n'
: |
sed
's|:$||'
`
path_value
=
`
echo
${
path_value
}
|
tr
:
'\n'
|
grep
-v
"
^
${
path_prefix
}
$
"
|
tr
'\n'
: |
sed
's|:$||'
`
path_value
=
"
${
path_prefix
}${
path_value
:+:
${
path_value
}}
"
eval export
${
path_name
}
=
'${path_value}'
unset
path_value
...
...
This diff is collapsed.
Click to expand it.
cmake/thisdd4hep_only.sh
+
1
−
1
View file @
1794c999
...
...
@@ -36,7 +36,7 @@ dd4hep_add_path() {
local
path_prefix
=
${
2
}
eval
path_value
=
\$
$path_name
# Prevent duplicates
path_value
=
`
echo
${
path_value
}
|
tr
:
'\n'
|
grep
-v
"
${
path_prefix
}
"
|
tr
'\n'
: |
sed
's|:$||'
`
path_value
=
`
echo
${
path_value
}
|
tr
:
'\n'
|
grep
-v
"
^
${
path_prefix
}
$
"
|
tr
'\n'
: |
sed
's|:$||'
`
path_value
=
"
${
path_prefix
}${
path_value
:+:
${
path_value
}}
"
eval export
${
path_name
}
=
'${path_value}'
unset
path_value
...
...
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