1 |
On Wed, May 21, 2014 at 10:10 PM, <ny6p01@×××××.com> wrote: |
2 |
> I run a script that syncs portage, updates @world, depcleans, revdep-rebuild |
3 |
> and finally runs dispatch-conf -- about once weekly. Keeps my system in fine |
4 |
> trim. :) |
5 |
|
6 |
This one is a gem - I forget where I saw it (likely planet, but maybe |
7 |
it was on a list). Stick it in your crontab. I will warn you that |
8 |
sometimes it chokes on its own output and obviously it can't build |
9 |
binpkgs for anything more than one step down the dependency tree. |
10 |
However, when my weekly chromium build runs at 2AM and I can just |
11 |
install it (with -k) the next morning it is a nice thing indeed. You |
12 |
still get full control over USE flags/etc, but most of the convenience |
13 |
of a binary distro. |
14 |
|
15 |
#!/bin/sh |
16 |
|
17 |
LIST=$(mktemp); |
18 |
|
19 |
emerge -puD --changed-use --color=n --columns --quiet=y --with-bdeps=y |
20 |
world | awk '{print $2}' > ${LIST}; |
21 |
|
22 |
for PACKAGE in $(cat ${LIST}); |
23 |
do |
24 |
printf "Building binary package for ${PACKAGE}... " |
25 |
emerge -uN --quiet-build --quiet=y --buildpkgonly ${PACKAGE}; |
26 |
if [[ $? -eq 0 ]]; |
27 |
then |
28 |
echo "ok"; |
29 |
else |
30 |
echo "failed"; |
31 |
fi |
32 |
done |