Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Development
OpenFOAM-plus
Commits
6afd367b
Commit
6afd367b
authored
Aug 09, 2019
by
Mark Olesen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CONFIG: robuster paraview detection
parent
b9f464d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
wmake/scripts/paraviewFunctions
wmake/scripts/paraviewFunctions
+4
-4
No files found.
wmake/scripts/paraviewFunctions
View file @
6afd367b
...
...
@@ -121,17 +121,17 @@ have_pvplugin_support()
# Extract the paraview major+minor version from the directory name
# From /path/paraview-5.6 -> 5.6
pv_api
=
$(
echo
"
$
{
targetDir
##*/
}
"
|
\
sed
-n
-
e
's/^[^0-9]*\([0-9][0-9]*\.[0-9][0-9]*\).*/\1/p'
)
pv_api
=
$(
echo
"
$targetDir
"
|
\
sed
-ne
's
@^.*/@@;s
/^[^0-9]*\([0-9][0-9]*\.[0-9][0-9]*\).*/\1/p'
)
[
-n
"
$targetDir
"
]
||
{
echo
"
$warn
(could determine target)"
echo
"
$warn
(could
not
determine target)"
echo
" PV_PLUGIN_PATH=
${
PV_PLUGIN_PATH
:-
???
}
"
return
1
}
[
-n
"
$pv_api
"
]
||
{
echo
"
$warn
(could determine major.minor version)"
echo
"
$warn
(could
not
determine major.minor version)"
return
1
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment