Stop looking up the same id(1) results in sub-makes.
Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
5a0d38b3aa
commit
cf10dd450d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=291323
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user