Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/postinstall In get_makevar, ask make to recursively...



details:   https://anonhg.NetBSD.org/src/rev/199e39109117
branches:  trunk
changeset: 331493:199e39109117
user:      apb <apb%NetBSD.org@localhost>
date:      Tue Aug 12 09:12:18 2014 +0000

description:
In get_makevar, ask make to recursively expand the variable,
not just print the unexpanded value.  This is done by
using make -V '${VAR}' instead of make -V 'VAR'.

diffstat:

 usr.sbin/postinstall/postinstall |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r a56bb9924051 -r 199e39109117 usr.sbin/postinstall/postinstall
--- a/usr.sbin/postinstall/postinstall  Tue Aug 12 08:32:43 2014 +0000
+++ b/usr.sbin/postinstall/postinstall  Tue Aug 12 09:12:18 2014 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: postinstall,v 1.178 2014/08/12 08:32:43 apb Exp $
+# $NetBSD: postinstall,v 1.179 2014/08/12 09:12:18 apb Exp $
 #
 # Copyright (c) 2002-2008 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -716,7 +716,7 @@
 
        for _var in "$@"; do
                _value="$(echo '.include <bsd.own.mk>' | \
-                   ${MAKE} -f - -V "${_var}")"
+                   ${MAKE} -f - -V "\${${_var}}")"
 
                eval ${_var}=\"\${_value}\"
        done



Home | Main Index | Thread Index | Old Index