blob: 6be8f747227e9f82c104bf9746aecf649bc52c72 (
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
|
#!/bin/bash
. /etc/init.d/functions.sh
run() {
ebegin $1
$2
eend $? || exit -1
}
update_overlay() {
einfo "Updating $@"
pushd "$@" >/dev/null
if [ -d .git ]; then
git pull -q
elif [ -d .svn ]; then
svn up -q
elif [ -d CVS ]; then
cvs -Q up
else
ewarn "Don't know how to update this repo"
fi
popd >/dev/null
}
pushd /home/angelos/gentoo-x86 >/dev/null
run "Running cvs up" "cvs -Q up"
popd >/dev/null
einfo "Updating overlays"
for x in $(portageq portdir_overlay); do
update_overlay "$x"
done
run "Regenerating cache" "egencache --update --jobs=4"
run "Regenerating use.local.desc" "egencache --update-use-local-desc"
cp /var/cache/eix /tmp/eix-cache.old
run "Updating eix cache" "eix-update --quiet"
eix-diff /tmp/eix-cache.old
rm /tmp/eix-cache.old
einfo "Sync complete!"
|