[Zrouter-src] ZRouter.org: push to ZRouter Makefile

zrouter-src at zrouter.org zrouter-src at zrouter.org
Thu Oct 2 12:36:49 UTC 2014


details:   http://zrouter.org/hg/zrouter//rev/4a36e404243d
changeset: 505:4a36e404243d
user:      Aleksandr Rybalko <ray at ddteam.net>
date:      Thu Oct 02 15:35:23 2014 +0300
description:
Fix import of FreeBSD version varables to method understood by both make(1)s.

diffstat:

 Makefile |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (17 lines):

diff -r 617dc632a646 -r 4a36e404243d Makefile
--- 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


More information about the Zrouter-src mailing list