saving uncommitted changes in /etc prior to emerge run
This commit is contained in:
34
portage-backup/bashrc
Normal file
34
portage-backup/bashrc
Normal file
@@ -0,0 +1,34 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user