xbps-src: Define XBPS_GCC_VERSION
To simplify testing for the currently used gcc version introduce global environment variables to avoid running `gcc --version`.
This commit is contained in:
parent
802943ad12
commit
fd9ff4fedf
23 changed files with 26 additions and 44 deletions
4
xbps-src
4
xbps-src
|
@ -403,6 +403,10 @@ readonly XBPS_VERSION_REQ="0.46"
|
|||
readonly XBPS_VERSION=$(xbps-uhelper -V|awk '{print $2}')
|
||||
readonly XBPS_SRC_VERSION="113"
|
||||
export XBPS_MACHINE=$(xbps-uhelper arch)
|
||||
readonly XBPS_GCC_VERSION_MAJOR=4
|
||||
readonly XBPS_GCC_VERSION_MINOR=9
|
||||
readonly XBPS_GCC_VERSION_BUILD=4
|
||||
readonly XBPS_GCC_VERSION=${XBPS_GCC_VERSION_MAJOR}.${XBPS_GCC_VERSION_MINOR}.${XBPS_GCC_VERSION_BUILD}
|
||||
|
||||
#
|
||||
# main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue