etc-gentoo/portage/bashrc

35 lines
905 B
Bash
Raw Permalink Normal View History

#post_src_prepare() {
# epatch_user
#}
case "${EBUILD_PHASE}" in
pretend)
if [[ $(ld --version) =~ "gold" ]] ; then
echo -e "\033[1;31mld gold is in use!!\033[0m"
fi ;;
setup)
if [[ $(ld --version) =~ "gold" ]] ; then
echo -e "\033[1;31mld gold is in use!!\033[0m"
fi ;;
preinst|prerm)
echo -e '\033[1;32metckeeper preinst phase...\033[0m'
etckeeper pre-install ;;
postinst|postrm)
echo -e '\033[1;32metckeeper postinst phase...\033[0m'
etckeeper post-install
if [[ $(ld --version) =~ "gold" ]] ; then
echo -e "\033[1;31mld gold is in use!!\033[0m"
fi ;;
esac
#if [ "${EBUILD_PHASE}" == "postinst" ] ; then
# LOGS="$(find $(portageq envvar PORT_LOGDIR)/build/${CATEGORY} -type f -name "*${PF}:*" | sort -nr | head -n 2)"
# for i in ${LOGS} ; do
# grep Maintainer "${i}" && log=${i}
# done
# eerror
# eerror "build log is at ${log}"
# eerror
# unset LOGS i log
#fi