]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Allow 'make buildenv' to default to the caller's shell by using SHELL.
authorbdrewery <bdrewery@FreeBSD.org>
Thu, 5 Nov 2015 22:09:00 +0000 (22:09 +0000)
committerbdrewery <bdrewery@FreeBSD.org>
Thu, 5 Nov 2015 22:09:00 +0000 (22:09 +0000)
commitf85ce54a015b0eb2e4b4be6460d30ab9fc356030
tree729c6b0cd4742f143e775bc5163439f11343df5c
parentc369925ae6daac7ea494e356603f170667c72775
Allow 'make buildenv' to default to the caller's shell by using SHELL.

Also pass BUILDENV=1 into the sub-shell to allow modifying PS1 in .profile such
as:
  if [ -n "${BUILDENV}" ]; then
          PS1="(buildenv) ${PS1}"
  fi

SHELL defaults to 'sh' in share/mk/sys.mk, but is typically passed down by
the shell invoking make as well.  Rather than forcing all 'buildenv' users
to use plain /bin/sh, let them use their favorite shell.

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
Discussed with: imp
Makefile.inc1