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:
Juergen Buchmueller 2016-10-25 23:19:58 +02:00
parent 802943ad12
commit fd9ff4fedf
23 changed files with 26 additions and 44 deletions

View file

@ -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()