Gentoo Archives: gentoo-user

From: Joost Roeleveld <joost@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Howzat!
Date: Tue, 19 Apr 2011 12:42:25
Message-Id: 20110419124136.9AB062A14@data.antarean.org
In Reply to: Re: [gentoo-user] Howzat! by Neil Bothwick
1 On Tuesday 19 April 2011 09:04:18 Neil Bothwick wrote:
2 > On Tue, 19 Apr 2011 08:57:07 +0200, Joost Roeleveld wrote:
3 > > > > Incidentally, my cron script that runs emerge --sync follows it
4 > > > > with
5 > > > > emerge-uDNf world, so the files are already in $DISTDIR when I
6 > > > > want
7 > > > > to update.
8 > > >
9 > > > Can you post the script?
10 > >
11 > > My guess is that the script would be something like the following:
12 > > =====
13 > > #!/bin/sh
14 > > #
15 > > emerge --sync
16 > > emerge -uDNf world
17 > > =====
18 >
19 > That's the gist of it, although it also emails the output from emerge
20 > -pvDN world, so I can see what needs to be done. It runs a few other
21 > bits, like glsa-check.
22
23 Like the following?
24 =====
25 #!/bin/sh
26 #
27 /bin/mkdir /tmp/ABBAABBA_portage_sync
28
29 /usr/bin/layman -S
30
31 /usr/bin/eix-sync
32
33 /usr/bin/glsa-check -d $(/usr/bin/glsa-check -t all) >
34 /tmp/ABBAABBA_portage_sync/portage_sync_glsa.log
35
36 /bin/mail -e -s "Portage Sync [GLSA-log]" memyselfandi@×××××××.org <
37 /tmp/ABBAABBA_portage_sync/portage_sync_glsa.log
38
39 /bin/rm /tmp/ABBAABBA_portage_sync/portage_sync_glsa.log
40
41 /usr/bin/emerge -pvauD --newuse world >
42 /tmp/ABBAABBA_portage_sync/portage_sync_emerge.log
43
44 /bin/mail -e -s "Portage Sync [EMERGE-list]" memyselfandi@×××××××.org <
45 /tmp/ABBAABBA_portage_sync/portage_sync_emerge.log
46
47 /bin/rm /tmp/ABBAABBA_portage_sync/portage_sync_emerge.log
48
49 /bin/rmdir /tmp/ABBAABBA_portage_sync
50 =====
51 In the above script, I put an empty line between each command for readability.
52
53 This is what I run on my system.
54
55 --
56 Joost

Replies

Subject Author
Re: [gentoo-user] Howzat! Thanasis <thanasis@××××××××××.org>