Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
Visualization
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Modules
Visualization
Commits
c92ad9fc
Commit
c92ad9fc
authored
Nov 06, 2019
by
Mark Olesen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENH: test for WM_PROJECT_DIR being set/unset in scripts
COMP: provide separate get_pvplugin_api function
parent
832ce59e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
10 deletions
+13
-10
src/paraview-plugins/Allwclean
src/paraview-plugins/Allwclean
+6
-2
src/paraview-plugins/Allwmake
src/paraview-plugins/Allwmake
+7
-8
No files found.
src/paraview-plugins/Allwclean
View file @
c92ad9fc
#!/bin/sh
#!/bin/sh
cd
${
0
%/*
}
||
exit
1
# Run from this directory
cd
${
0
%/*
}
||
exit
1
# Run from this directory
.
$WM_PROJECT_DIR
/wmake/scripts/wmakeFunctions
# Source wmake functions
.
${
WM_PROJECT_DIR
:?
}
/wmake/scripts/wmakeFunctions
# Require wmake functions
.
${
WM_PROJECT_DIR
:?
}
/wmake/scripts/paraviewFunctions
# For API info
# -----------------------------------------------------------------------------
get_pvplugin_api
||
echo
"No ParaView plugin information found"
1>&2
# Cleanup libraries
# Cleanup libraries
wclean libso foamPv
wclean libso foamPv
...
...
src/paraview-plugins/Allwmake
View file @
c92ad9fc
#!/bin/sh
#!/bin/sh
cd
${
0
%/*
}
||
exit
1
# Run from this directory
cd
${
0
%/*
}
||
exit
1
# Run from this directory
export
WM_CONTINUE_ON_ERROR
=
true
# Optional unit
export
WM_CONTINUE_ON_ERROR
=
true
# Optional unit
.
$WM_PROJECT_DIR
/wmake/scripts/AllwmakeParseArguments
.
${
WM_PROJECT_DIR
:?
}
/wmake/scripts/AllwmakeParseArguments
.
$WM_PROJECT_DIR
/wmake/scripts/paraviewFunctions
# CMake and PV functions
.
${
WM_PROJECT_DIR
:?
}
/wmake/scripts/paraviewFunctions
# CMake, PV functions
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
warnIncomplete
()
warnIncomplete
()
...
@@ -20,7 +19,7 @@ then
...
@@ -20,7 +19,7 @@ then
wmakeLibPv blockMeshReader/library
wmakeLibPv blockMeshReader/library
wmakeLibPv foamReader/library
wmakeLibPv foamReader/library
unset
cmakeType
unset
cmake
Opts cmake
Type
if
[
"
$targetType
"
!=
objects
]
if
[
"
$targetType
"
!=
objects
]
then
then
...
@@ -37,8 +36,8 @@ then
...
@@ -37,8 +36,8 @@ then
if
[
-n
"
$cmakeType
"
]
if
[
-n
"
$cmakeType
"
]
then
then
"
$cmakeType
"
$PWD
/blockMeshReader
||
warnIncomplete
"blockMesh"
"
$cmakeType
"
$PWD
/blockMeshReader
"
$cmakeOpts
"
||
warnIncomplete
"blockMesh"
"
$cmakeType
"
$PWD
/foamReader
||
warnIncomplete
"OpenFOAM"
"
$cmakeType
"
$PWD
/foamReader
"
$cmakeOpts
"
||
warnIncomplete
"OpenFOAM"
fi
fi
)
)
fi
fi
...
...
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