blob: 5464937c4efeb9fbbd41c01a59e04fed4ab8dc87 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
#!/bin/sh
. "${0%/*}/common.sh"
if [ "$1" != -p ]; then
cmd cd /usr/portage
cmd git fetch
chks=
d=/home/alex/gentoo-overlay
for chk in $d/*/*; do
f=${chk#$d/}
case "$f" in
metadata/layout.conf|profiles/repo_name) continue
esac
case "$f" in
profiles/*) f=profiles/base/${f#profiles/}
esac
if [ -e "$f" ]; then
chks="$chks $f"
fi
done
cmd git --no-pager log --oneline ..@{u} -- $chks dev-java/openjdk dev-java/openjdk-bin dev-java/openjdk-jre-bin virtual/jdk virtual/jre profiles/base/package.use.mask
stashed=
if [ "$(git status --porcelain | head -c1)" != "" ]; then
cmd git stash
stashed=1
fi
cmd git rebase @{u}
if [ -n "$stashed" ]; then
cmd git stash pop
fi
cmd sudo emerge --sync
for f in /etc/portage/repo.postsync.d/*; do
if [ -x "$f" ]; then
cmd "$f" gentoo "" /usr/portage
fi
done
cmd mv /var/cache/eix/portage.eix /var/cache/eix/previous.eix
cmd sudo eix-update
cmd sudo eix-diff
fi
if [ "$(eselect news count)" != 0 ]; then
cmd sudo eselect news read
printf 'Press enter to continue...\n'
read REPLY
fi
cmd sudo emerge -uD --changed-use @world
cmd sudo smart-live-rebuild -- --usepkg=n
# needs --usepkg-exclude
#cmd sudo emerge @preserved-rebuild
cmd sudo dispatch-conf
cmd sudo emerge --depclean --deep --verbose=n
cmd sudo revdep-rebuild --ignore --verbose -- --usepkg=n
|