Module Name: src Committed By: apb Date: Tue Aug 12 09:12:18 UTC 2014
Modified Files: src/usr.sbin/postinstall: postinstall Log Message: 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'. To generate a diff of this commit: cvs rdiff -u -r1.178 -r1.179 src/usr.sbin/postinstall/postinstall Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.sbin/postinstall/postinstall diff -u src/usr.sbin/postinstall/postinstall:1.178 src/usr.sbin/postinstall/postinstall:1.179 --- src/usr.sbin/postinstall/postinstall:1.178 Tue Aug 12 08:32:43 2014 +++ src/usr.sbin/postinstall/postinstall Tue Aug 12 09:12:18 2014 @@ -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 @@ get_makevar() for _var in "$@"; do _value="$(echo '.include <bsd.own.mk>' | \ - ${MAKE} -f - -V "${_var}")" + ${MAKE} -f - -V "\${${_var}}")" eval ${_var}=\"\${_value}\" done