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
c3f50d3c
Commit
c3f50d3c
authored
9 years ago
by
Henry Weller
Browse files
Options
Downloads
Patches
Plain Diff
wmakeLnInclude: Minor simplifications and reformatting
parent
5b28e12a
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
+21
-25
21 additions, 25 deletions
wmake/wmakeLnInclude
with
21 additions
and
25 deletions
wmake/wmakeLnInclude
+
21
−
25
View file @
c3f50d3c
...
@@ -78,24 +78,24 @@ unset update silentOpt
...
@@ -78,24 +78,24 @@ unset update silentOpt
while
[
"$#"
-gt
0
]
while
[
"$#"
-gt
0
]
do
do
case
"
$1
"
in
case
"
$1
"
in
-h
|
-help
)
# Provide immediate help
-h
|
-help
)
# Provide immediate help
usage
usage
;;
;;
-u
|
-update
)
-u
|
-update
)
update
=
true
update
=
true
lnOpt
=
"-sf"
lnOpt
=
"-sf"
shift
shift
;;
;;
-s
|
-silent
)
-s
|
-silent
)
silentOpt
=
true
silentOpt
=
true
shift
shift
;;
;;
-
*
)
-
*
)
usage
"unknown option: '
$*
'"
usage
"unknown option: '
$*
'"
;;
;;
*
)
*
)
break
break
;;
;;
esac
esac
done
done
...
@@ -126,10 +126,7 @@ incDir=$baseDir/lnInclude
...
@@ -126,10 +126,7 @@ incDir=$baseDir/lnInclude
if
[
-d
$incDir
]
if
[
-d
$incDir
]
then
then
[
"
$update
"
=
true
]
||
{
[
"
$update
"
=
true
]
||
exit
0
# echo "$Script error: include directory $incDir already exists" 1>&2
exit
0
}
else
else
mkdir
$incDir
mkdir
$incDir
fi
fi
...
@@ -141,10 +138,9 @@ fi
...
@@ -141,10 +138,9 @@ fi
cd
$incDir
||
exit
1
cd
$incDir
||
exit
1
if
[
"
$silentOpt
"
!=
true
]
[
"
$silentOpt
"
=
true
]
||
{
then
echo
"
$Script
: linking include files to
$incDir
"
1>&2
echo
"
$Script
: linking include files to
$incDir
"
1>&2
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