mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: make use of FOAM_API for environment as well (issue #1158)
- was WM_PROJECT_API in the environment and FOAM_API in dictionaries.
Make these both consistently FOAM_API.
This is a non-breaking change, since the value of WM_PROJECT_API
(added in 1812) and/or FOAM_API is purely informative.
For the current correct values, always use
* foamEtcFile -show-api
* wmakeBuildInfo -show-api
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
# \\ / O peration |
|
||||
# \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
# \\/ M anipulation | Copyright (C) 2016-2018 OpenCFD Ltd.
|
||||
# \\/ M anipulation | Copyright (C) 2016-2019 OpenCFD Ltd.
|
||||
#------------------------------------------------------------------------------
|
||||
# License
|
||||
# This file is part of OpenFOAM, licensed under GNU General Public License
|
||||
@ -183,11 +183,11 @@ endif
|
||||
setenv PATH "${WM_PROJECT_DIR}/bin:${PATH}"
|
||||
|
||||
# Prepend site-specific scripts to path - only if they exist
|
||||
if ( -d "$siteDir/bin" ) then # Generic
|
||||
if ( -d "$siteDir/bin" ) then # Generic
|
||||
_foamAddPath "$siteDir/bin"
|
||||
endif
|
||||
if ( -d "$siteDir/$WM_PROJECT_API/bin" ) then # API-specific
|
||||
_foamAddPath "$siteDir/$WM_PROJECT_API/bin"
|
||||
if ( -d "$siteDir/$FOAM_API/bin" ) then # API-specific
|
||||
_foamAddPath "$siteDir/$FOAM_API/bin"
|
||||
endif
|
||||
|
||||
# OpenFOAM executables (user, group, standard)
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
# ========= |
|
||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
# \\ / O peration |
|
||||
# \\ / A nd | Copyright (C) 2018 OpenCFD Ltd.
|
||||
# \\ / A nd | Copyright (C) 2018-2019 OpenCFD Ltd.
|
||||
# \\/ M anipulation |
|
||||
#------------------------------------------------------------------------------
|
||||
# License
|
||||
@ -24,8 +24,8 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# [WM_PROJECT_API] - The API level for the project
|
||||
setenv WM_PROJECT_API `$WM_PROJECT_DIR/bin/foamEtcFile -show-api`
|
||||
# [FOAM_API] - The API level for the project
|
||||
setenv FOAM_API `$WM_PROJECT_DIR/bin/foamEtcFile -show-api`
|
||||
|
||||
# The installation parent directory
|
||||
set prefixDir="${WM_PROJECT_DIR:h}"
|
||||
@ -51,8 +51,8 @@ _foamEcho "Locating ThirdParty directory"
|
||||
foreach foamDir (\
|
||||
"$WM_PROJECT_DIR/ThirdParty" \
|
||||
"$prefixDir/ThirdParty-$WM_PROJECT_VERSION" \
|
||||
"$prefixDir/ThirdParty-v$WM_PROJECT_API" \
|
||||
"$prefixDir/ThirdParty-$WM_PROJECT_API" \
|
||||
"$prefixDir/ThirdParty-v$FOAM_API" \
|
||||
"$prefixDir/ThirdParty-$FOAM_API" \
|
||||
"$prefixDir/ThirdParty-common" \
|
||||
)
|
||||
_foamEcho "... $foamDir"
|
||||
|
||||
Reference in New Issue
Block a user