diff options
author | gjb <gjb@FreeBSD.org> | 2015-02-09 09:56:21 +0000 |
---|---|---|
committer | gjb <gjb@FreeBSD.org> | 2015-02-09 09:56:21 +0000 |
commit | ea9a3d8b689a4a59325cd5bf19ef65140375696a (patch) | |
tree | 2f5a008442f5ca6f215685d80c9085f5ecaca227 /release | |
parent | d8dbe90afc1f6bfe2b622fb74f04a6c40181f455 (diff) | |
download | FreeBSD-src-ea9a3d8b689a4a59325cd5bf19ef65140375696a.zip FreeBSD-src-ea9a3d8b689a4a59325cd5bf19ef65140375696a.tar.gz |
Define FREEBSD_VERSION in release/Makefile, derived
from sys/sys/param.h.
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'release')
-rw-r--r-- | release/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/release/Makefile b/release/Makefile index 4672a91..0dffc1b 100644 --- a/release/Makefile +++ b/release/Makefile @@ -54,6 +54,10 @@ TARGET_ARCH= ${TARGET} IMAKE= ${MAKE} TARGET_ARCH=${TARGET_ARCH} TARGET=${TARGET} DISTDIR= dist +# Get the __FreeBSD_version for the build +FREEBSD_VERSION!= awk '/^\#define __FreeBSD_version/ {print $$3}' \ + ${.CURDIR}/../sys/sys/param.h + # Define OSRELEASE by using newvars.sh .if !defined(OSRELEASE) || empty(OSRELEASE) .for _V in TYPE BRANCH REVISION |