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
a2ef9cdc
Commit
a2ef9cdc
authored
14 years ago
by
Mark Olesen
Browse files
Options
Downloads
Patches
Plain Diff
STYLE: drop optional 'ln' option for wmakeLnInclude
- not required since the addition of the '-f' option
parent
fd2c6d01
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/wmakeLnInclude
+3
-7
3 additions, 7 deletions
wmake/wmakeLnInclude
with
3 additions
and
7 deletions
wmake/wmakeLnInclude
+
3
−
7
View file @
a2ef9cdc
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
# Description
# Description
# Link all the source files in the <dir> directory into <dir>/lnInclude
# Link all the source files in the <dir> directory into <dir>/lnInclude
#
#
# Usage: wmakeLnInclude [-f] <dir>
[-lnOption]
# Usage: wmakeLnInclude [-f] <dir>
#
#
# The desired source files:
# The desired source files:
# *.C *.H *.h *.cpp *.cxx *.hpp *.hxx
# *.C *.H *.h *.cpp *.cxx *.hpp *.hxx
...
@@ -43,13 +43,13 @@ usage() {
...
@@ -43,13 +43,13 @@ usage() {
while
[
"$#"
-ge
1
]
;
do
echo
"
$1
"
;
shift
;
done
while
[
"$#"
-ge
1
]
;
do
echo
"
$1
"
;
shift
;
done
cat
<<
USAGE
cat
<<
USAGE
usage:
$Script
[-f] <dir>
[-lnOption]
usage:
$Script
[-f] <dir>
Link all the source files in the <dir> into <dir>/lnInclude
Link all the source files in the <dir> into <dir>/lnInclude
Note
Note
The '-f' option forces an update when the lnInclude directory already exists
The '-f' option forces an update when the lnInclude directory already exists
and
also
changes the default linking from 'ln -s' to 'ln -sf'.
and changes the default linking from 'ln -s' to 'ln -sf'.
USAGE
USAGE
exit
1
exit
1
...
@@ -89,10 +89,6 @@ done
...
@@ -89,10 +89,6 @@ done
if
[
$#
-eq
1
]
if
[
$#
-eq
1
]
then
then
baseDir
=
$1
baseDir
=
$1
elif
[
$#
-eq
2
]
then
baseDir
=
$1
lnOpt
=
"
$2
"
else
else
usage
"ERROR: incorrect number of arguments"
usage
"ERROR: incorrect number of arguments"
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