Gentoo Archives: gentoo-dev

From: "Marshall T. Vandegrift" <vandem2@×××.edu>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] emerge -U world with mixed stable/unstable ebuilds
Date: Wed, 26 Mar 2003 14:05:27
Message-Id: 873cla2pho.fsf@rpi.edu
In Reply to: [gentoo-dev] emerge -U world with mixed stable/unstable ebuilds by Chris Bainbridge
1 Trying again, after realizing that gento-dev dislikes attachments...
2
3 Chris Bainbridge <C.J.Bainbridge@×××××.uk> writes:
4
5 > I could modify my local portage tree after syncing to mark every
6 > ebuild I want stable, but is there an easier way? Preferably some
7 > way to update all stable ebuilds to the latest stable version and
8 > all unstable ones to the latest unstable...?
9
10 For a hideous hack that works right now (and is thus the solution I
11 use) check out the following shell scripts:
12
13 ----- begin: stable-eup.sh -----
14 #! /bin/sh
15
16 NOCOLOR="true" emerge -up world \
17 | grep '^\[ebuild' \
18 | grep -v '^\[ebuild UD\]' \
19 | sed -re's/.*?\] (.*?)-[0-9
20 ------ end: stable-eup.sh ------
21
22 ---- begin: unstable-eup.sh ----
23 #! /bin/sh
24
25 NOCOLOR="true" emerge -up world \
26 | grep '^\[ebuild' \
27 | grep '^\[ebuild UD\]' \
28 | sed -re's/.*?\] (.*?)-[0-9].*/\1/' \
29 | NOCOLOR="true" ACCEPT_KEYWORDS="~x86" xargs emerge -p \
30 | grep '^\[ebuild' \
31 | grep -v '^\[ebuild R \]' \
32 | sed -re's/.*?\] (.*?)-[0-9].*/\1/' \
33 | ACCEPT_KEYWORDS="~x86" xargs emerge "$@"
34 ----- end: unstable-eup.sh -----
35
36 --
37 Marshall T. Vandegrift <vandem2@×××.edu>
38
39 Disciplined and calm, to await the appearance of
40 disorder and hubbub amongst the enemy:--this is the
41 art of retaining self-possession.
42 -- Sun Tzu (/The Art of War/, 7:30)
43
44 --
45 gentoo-dev@g.o mailing list