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
b85c3501
Commit
b85c3501
authored
13 years ago
by
andy
Browse files
Options
Downloads
Patches
Plain Diff
ENH: redirect to stderr when sourcing bashrc (Mark Olesen)
parent
26b19d07
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
etc/bashrc
+3
-3
3 additions, 3 deletions
etc/bashrc
etc/config/aliases.sh
+1
-1
1 addition, 1 deletion
etc/config/aliases.sh
etc/config/settings.sh
+30
-30
30 additions, 30 deletions
etc/config/settings.sh
with
34 additions
and
34 deletions
etc/bashrc
+
3
−
3
View file @
b85c3501
...
...
@@ -137,7 +137,7 @@ _foamSource()
{
while
[
$#
-ge
1
]
do
[
"
$FOAM_VERBOSE
"
-a
"
$PS1
"
]
&&
echo
"Sourcing:
$1
"
[
"
$FOAM_VERBOSE
"
-a
"
$PS1
"
]
&&
echo
"Sourcing:
$1
"
1>&2
.
$1
shift
done
...
...
@@ -155,12 +155,12 @@ _foamEval()
;;
*
=
)
# name= -> unset name
[
"
$FOAM_VERBOSE
"
-a
"
$PS1
"
]
&&
echo
"unset
${
1
%=
}
"
[
"
$FOAM_VERBOSE
"
-a
"
$PS1
"
]
&&
echo
"unset
${
1
%=
}
"
1>&2
eval
"unset
${
1
%=
}
"
;;
*
=
*
)
# name=value -> export name=value
[
"
$FOAM_VERBOSE
"
-a
"
$PS1
"
]
&&
echo
"export
$1
"
[
"
$FOAM_VERBOSE
"
-a
"
$PS1
"
]
&&
echo
"export
$1
"
1>&2
eval
"export
$1
"
;;
*
)
...
...
This diff is collapsed.
Click to expand it.
etc/config/aliases.sh
+
1
−
1
View file @
b85c3501
...
...
@@ -53,7 +53,7 @@ unset foamPV
foamPV
()
{
.
$WM_PROJECT_DIR
/etc/config/paraview.sh
ParaView_VERSION
=
$1
echo
"paraview-
$ParaView_VERSION
(major:
$ParaView_MAJOR
)"
echo
"paraview-
$ParaView_VERSION
(major:
$ParaView_MAJOR
)"
1>&2
}
...
...
This diff is collapsed.
Click to expand it.
etc/config/settings.sh
+
30
−
30
View file @
b85c3501
...
...
@@ -93,7 +93,7 @@ Linux)
export
WM_LDFLAGS
=
'-m64'
;;
*
)
echo
"Unknown WM_ARCH_OPTION '
$WM_ARCH_OPTION
', should be 32 or 64"
echo
"Unknown WM_ARCH_OPTION '
$WM_ARCH_OPTION
', should be 32 or 64"
1>&2
;;
esac
;;
...
...
@@ -135,7 +135,7 @@ Linux)
;;
*
)
echo
Unknown processor
type
`
uname
-m
`
for
Linux
echo
Unknown processor
type
`
uname
-m
`
for
Linux
1>&2
;;
esac
;;
...
...
@@ -152,7 +152,7 @@ SunOS)
;;
*
)
# an unsupported operating system
cat
<<
USAGE
/bin/
cat
<<
USAGE
1>&2
Your "
$WM_ARCH
" operating system is not supported by this release
of OpenFOAM. For further assistance, please contact www.OpenFOAM.org
...
...
@@ -268,11 +268,11 @@ OpenFOAM | ThirdParty)
#clang_version=llvm-svn
;;
*
)
echo
echo
"Warning in
$WM_PROJECT_DIR
/etc/config/settings.sh:"
echo
" Unknown OpenFOAM compiler type '
$WM_COMPILER
'"
echo
" Please check your settings"
echo
echo
1>&2
echo
"Warning in
$WM_PROJECT_DIR
/etc/config/settings.sh:"
1>&2
echo
" Unknown OpenFOAM compiler type '
$WM_COMPILER
'"
1>&2
echo
" Please check your settings"
1>&2
echo
1>&2
;;
esac
...
...
@@ -288,11 +288,11 @@ OpenFOAM | ThirdParty)
# Check that the compiler directory can be found
[
-d
"
$gccDir
"
]
||
{
echo
echo
"Warning in
$WM_PROJECT_DIR
/etc/config/settings.sh:"
echo
" Cannot find
$gccDir
installation."
echo
" Please install this compiler version or if you wish to use the system compiler,"
echo
" change the 'foamCompiler' setting to 'system'"
echo
1>&2
echo
"Warning in
$WM_PROJECT_DIR
/etc/config/settings.sh:"
1>&2
echo
" Cannot find
$gccDir
installation."
1>&2
echo
" Please install this compiler version or if you wish to use the system compiler,"
1>&2
echo
" change the 'foamCompiler' setting to 'system'"
1>&2
echo
}
...
...
@@ -325,12 +325,12 @@ OpenFOAM | ThirdParty)
# Check that the compiler directory can be found
[
-d
"
$clangDir
"
]
||
{
echo
echo
"Warning in
$WM_PROJECT_DIR
/etc/config/settings.sh:"
echo
" Cannot find
$clangDir
installation."
echo
" Please install this compiler version or if you wish to use the system compiler,"
echo
" change the 'foamCompiler' setting to 'system'"
echo
echo
1>&2
echo
"Warning in
$WM_PROJECT_DIR
/etc/config/settings.sh:"
1>&2
echo
" Cannot find
$clangDir
installation."
1>&2
echo
" Please install this compiler version or if you wish to use the system compiler,"
1>&2
echo
" change the 'foamCompiler' setting to 'system'"
1>&2
echo
1>&2
}
_foamAddMan
$clangDir
/share/man
...
...
@@ -415,10 +415,10 @@ SYSTEMOPENMPI)
if
[
"
$FOAM_VERBOSE
"
-a
"
$PS1
"
]
then
echo
"Using system installed MPI:"
echo
" compile flags :
$PINC
"
echo
" link flags :
$PLIBS
"
echo
" libmpi dir :
$libDir
"
echo
"Using system installed MPI:"
1>&2
echo
" compile flags :
$PINC
"
1>&2
echo
" link flags :
$PLIBS
"
1>&2
echo
" libmpi dir :
$libDir
"
1>&2
fi
_foamAddLib
$libDir
...
...
@@ -492,7 +492,7 @@ HPMPI)
_foamAddLib
$MPI_ARCH_PATH
/lib/linux_ia64
;;
*
)
echo
Unknown processor
type
`
uname
-m
`
for
Linux
echo
Unknown processor
type
`
uname
-m
`
1>&2
;;
esac
;;
...
...
@@ -542,9 +542,9 @@ SGIMPI)
if
[
"
$FOAM_VERBOSE
"
-a
"
$PS1
"
]
then
echo
"Using SGI MPT:"
echo
" MPI_ROOT :
$MPI_ROOT
"
echo
" FOAM_MPI :
$FOAM_MPI
"
echo
"Using SGI MPT:"
1>&2
echo
" MPI_ROOT :
$MPI_ROOT
"
1>&2
echo
" FOAM_MPI :
$FOAM_MPI
"
1>&2
fi
_foamAddPath
$MPI_ARCH_PATH
/bin
...
...
@@ -568,9 +568,9 @@ INTELMPI)
if
[
"
$FOAM_VERBOSE
"
-a
"
$PS1
"
]
then
echo
"Using INTEL MPI:"
echo
" MPI_ROOT :
$MPI_ROOT
"
echo
" FOAM_MPI :
$FOAM_MPI
"
echo
"Using INTEL MPI:"
1>&2
echo
" MPI_ROOT :
$MPI_ROOT
"
1>&2
echo
" FOAM_MPI :
$FOAM_MPI
"
1>&2
fi
_foamAddPath
$MPI_ARCH_PATH
/bin64
...
...
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