summaryrefslogtreecommitdiff
path: root/sys-apps/personal-utils/files/emergefix
blob: 59daee55359c841487fe8aa446307472a66cb74d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
set -e

echo -e '\e[1;34m========== Update packages ==========\e[0m'
emerge -auDN --with-bdeps=y --keep-going=y @world "$@"
[ $? -eq 0 ] || {
	echo -ne "\e[1;31mContinue?\e[0m "
	read
}
echo -e '\e[1;34m========== Rebuil packages ==========\e[0m'
revdep-rebuild -- "$@"
[ $? -eq 0 ] || {
	echo -ne "\e[1;31mContinue?\e[0m "
	read
}
echo -e '\e[1;34m========== Clean packages ==========\e[0m'
emerge --depclean -a "$@"