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:
@ -4,7 +4,7 @@
|
||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
# \\ / O peration |
|
||||
# \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
# \\/ M anipulation | Copyright (C) 2018 OpenCFD Ltd.
|
||||
# \\/ M anipulation | Copyright (C) 2018-2019 OpenCFD Ltd.
|
||||
#------------------------------------------------------------------------------
|
||||
# License
|
||||
# This file is part of OpenFOAM.
|
||||
@ -74,9 +74,9 @@ do
|
||||
esac
|
||||
done
|
||||
|
||||
# Constant width for version - default to WM_PROJECT_API
|
||||
# Constant width for version - default to FOAM_API
|
||||
|
||||
: ${version:=$WM_PROJECT_API}
|
||||
: ${version:=$FOAM_API}
|
||||
: ${version:=$WM_PROJECT_VERSION}
|
||||
|
||||
version=$(printf %-36s ${version:-OPENFOAM})
|
||||
|
||||
Reference in New Issue
Block a user