Stop looking up the same id(1) results in sub-makes.
Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
+12
-1
@@ -133,12 +133,23 @@ CTFCONVERT_CMD= @:
|
||||
.endif
|
||||
|
||||
.if ${MK_INSTALL_AS_USER} != "no"
|
||||
.if !defined(_uid)
|
||||
_uid!= id -u
|
||||
.export _uid
|
||||
.endif
|
||||
.if ${_uid} != 0
|
||||
.if !defined(USER)
|
||||
USER!= id -un
|
||||
# Avoid exporting USER
|
||||
.if !defined(_USER)
|
||||
_USER!= id -un
|
||||
.export _USER
|
||||
.endif
|
||||
USER= ${_USER}
|
||||
.endif
|
||||
.if !defined(_gid)
|
||||
_gid!= id -g
|
||||
.export _gid
|
||||
.endif
|
||||
.for x in BIN CONF DOC DTB INFO KMOD LIB MAN NLS SHARE
|
||||
$xOWN= ${USER}
|
||||
$xGRP= ${_gid}
|
||||
|
||||
Reference in New Issue
Block a user