Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor 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
Development
openfoam
Commits
eb00c802
Commit
eb00c802
authored
8 years ago
by
Mark Olesen
Browse files
Options
Downloads
Patches
Plain Diff
ENH: provide log option for top-level builds (issue
#333
)
parent
27ae7d5b
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
wmake/scripts/AllwmakeParseArguments
+24
-11
24 additions, 11 deletions
wmake/scripts/AllwmakeParseArguments
with
24 additions
and
11 deletions
wmake/scripts/AllwmakeParseArguments
+
24
−
11
View file @
eb00c802
...
...
@@ -46,6 +46,10 @@ Usage: $Script [OPTIONS]
Executing
$Script
is equivalent to
wmake -all [OPTIONS]
With these additional options:
-l | -log
USAGE
wmake
-help
...
...
@@ -57,8 +61,7 @@ USAGE
# Parse the arguments and options
#------------------------------------------------------------------------------
fromWmake
=
qOpt
=
unset
fromWmake optLog optQueue
for
arg
in
"
$@
"
do
...
...
@@ -70,17 +73,20 @@ do
usage
exit
0
;;
# Check if called from wmake to avoid recusion
-fromWmake
)
fromWmake
=
"fromWmake"
# If called from wmake (to avoid recursion)
fromWmake
=
true
;;
-l
|
-log
)
optLog
=
true
continue
# Permanently remove arg
;;
-q
)
qOpt
=
"-q"
# Permanently remove arg
continue
-q
|
-queue
)
optQueue
=
"-q"
continue
# Permanently remove arg
;;
# Target type
lib
|
libo
|
libso
|
dep
|
objects
)
# Target type
targetType
=
$arg
;;
esac
...
...
@@ -96,7 +102,13 @@ done
if
[
-z
"
$fromWmake
"
]
then
exec
wmake
-all
$qOpt
$*
if
[
-z
"
$optLog
"
]
then
exec
wmake
-all
$optQueue
$*
else
echo
"logging wmake -all output to 'log.Allwmake'"
1>&2
exec
wmake
-all
$optQueue
$*
2>&1 |
tee
log.Allwmake
fi
fi
...
...
@@ -114,7 +126,8 @@ fi
# Cleanup local variables and functions
#------------------------------------------------------------------------------
unset
Script usage fromWmake
unset
Script fromWmake optLog optQueue
unset
-f
usage
#------------------------------------------------------------------------------
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