blob: 7b83081e1dccafd3d3f1e3701531a0e8c48f312d (
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 doas 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 doas eix-update
cmd doas eix-diff
fi
if [ "$(eselect news count)" != 0 ]; then
cmd doas eselect news read
printf 'Press enter to continue...\n'
read REPLY
fi
cmd doas emerge -uD --changed-use @world
cmd doas smart-live-rebuild -- --usepkg=n
# needs --usepkg-exclude
#cmd doas emerge @preserved-rebuild
cmd doas dispatch-conf
cmd doas emerge --depclean --deep --verbose=n
cmd doas revdep-rebuild --ignore --verbose -- --usepkg=n
|