CONFIG: adjust MANPATH if an OpenFOAM doc/man1 directory exists

This commit is contained in:
Mark Olesen
2018-11-21 11:07:40 +01:00
parent 50ccb197dc
commit 98b5914198
2 changed files with 9 additions and 0 deletions

View File

@ -180,6 +180,11 @@ _foamEtc -config CGAL
_foamEtc -config scotch
_foamEtc -config FFTW
if [ -d "$WM_PROJECT_DIR/doc/man1" ]
then
_foamAddMan "$WM_PROJECT_DIR/doc"
fi
# Interactive shell
if /usr/bin/tty -s 2>/dev/null
then

View File

@ -216,6 +216,10 @@ _foamEtc -config ensight
_foamEtc -config CGAL
_foamEtc -config FFTW
if ( -d "$WM_PROJECT_DIR/doc/man1" ) then
_foamAddMan "$WM_PROJECT_DIR/doc"
endif
# Interactive shell
if ($?prompt) then
_foamEtc -config aliases