changeset 505:4a36e404243d

Fix import of FreeBSD version varables to method understood by both make(1)s.
author Aleksandr Rybalko <ray@ddteam.net>
date Thu, 02 Oct 2014 15:35:23 +0300
parents 617dc632a646
children 500480b36885
files Makefile
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Wed Oct 01 01:17:17 2014 +0300
+++ b/Makefile	Thu Oct 02 15:35:23 2014 +0300
@@ -22,9 +22,11 @@
 #
 .if exists(${FREEBSD_SRC_TREE}/sys/conf/newvers.sh)
 FREEBSD_VERSION_VARS!=grep -E '(TYPE|REVISION|BRANCH)=\"' \
-	${FREEBSD_SRC_TREE}/sys/conf/newvers.sh | sed 's/\"//g'
+	${FREEBSD_SRC_TREE}/sys/conf/newvers.sh | sed 's/\"//g' | sed 's/^/FREEBSD_/'
 .for var in ${FREEBSD_VERSION_VARS}
-FREEBSD_${var}
+VAR_LEFT=${var:C/=.*//}
+VAR_RIGHT=${var:C/.*=//}
+${VAR_LEFT}:=${VAR_RIGHT}
 .endfor
 FREEBSD_RELEASE=${FREEBSD_TYPE}-${FREEBSD_REVISION}-${FREEBSD_BRANCH}
 .else