ebuild-activate: add PORTAGE_*LOG*

Signed-off-by: Maciej Barć <xgqt@riseup.net>
This commit is contained in:
Maciej Barć 2021-07-05 13:54:45 +02:00
parent 662d9b42f4
commit 5db7afa3d5
No known key found for this signature in database
GPG Key ID: 031C9FE65BED714A

View File

@ -37,6 +37,7 @@ esac
# Set variables for ebuild development # Set variables for ebuild development
_tmpdir='/tmp/edev'
_toplevel="$(git rev-parse --show-toplevel || echo '/dev/null')" _toplevel="$(git rev-parse --show-toplevel || echo '/dev/null')"
ACCEPT_LICENSE='*' ACCEPT_LICENSE='*'
@ -48,9 +49,9 @@ then
export BINPKG_COMPRESS export BINPKG_COMPRESS
fi fi
if mkdir -p /tmp/distdir if mkdir -p "${_tmpdir}/dist"
then then
DISTDIR='/tmp/distdir' DISTDIR="${_tmpdir}/dist"
export DISTDIR export DISTDIR
fi fi
@ -60,6 +61,16 @@ export GENTOO_MIRRORS
INSTALL_MASK='' INSTALL_MASK=''
export INSTALL_MASK export INSTALL_MASK
if mkdir -p "${_tmpdir}/elog"
then
PORTAGE_ELOG_CLASSES='warn error log'
export PORTAGE_ELOG_CLASSES
PORTAGE_ELOG_SYSTEM='save'
export PORTAGE_ELOG_SYSTEM
PORTAGE_LOGDIR="${_tmpdir}/elog"
export PORTAGE_LOGDIR
fi
if [ -e "${_toplevel}/profiles/repo_name" ] if [ -e "${_toplevel}/profiles/repo_name" ]
then then
PORTDIR="${_toplevel}" PORTDIR="${_toplevel}"
@ -69,4 +80,13 @@ fi
PS1="(ebuild) ${PS1}" PS1="(ebuild) ${PS1}"
alias cd-edev='cd ${_tmpdir}'
alias cd-repo='cd ${_toplevel}'
alias clean-edev='rm -r ${_tmpdir}'
alias ls-dist='ls -ahl ${DISTDIR}'
alias ls-elog='ls -ahl ${PORTAGE_LOGDIR}'
echo ">>> Entering Ebuild development environment" echo ">>> Entering Ebuild development environment"