public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* Re: [gentoo-dev] emerge -U world with mixed stable/unstable ebuilds
  @ 2003-03-26 14:04 99% ` Marshall T. Vandegrift
  0 siblings, 0 replies; 1+ results
From: Marshall T. Vandegrift @ 2003-03-26 14:04 UTC (permalink / raw
  To: gentoo-dev

Trying again, after realizing that gento-dev dislikes attachments...

Chris Bainbridge <C.J.Bainbridge@ed.ac.uk> writes:

> I could modify my local portage tree after syncing to mark every
> ebuild I want stable, but is there an easier way? Preferably some
> way to update all stable ebuilds to the latest stable version and
> all unstable ones to the latest unstable...?

For a hideous hack that works right now (and is thus the solution I
use) check out the following shell scripts:

----- begin: stable-eup.sh -----
#! /bin/sh

NOCOLOR="true" emerge -up world \
        | grep '^\[ebuild' \
        | grep -v '^\[ebuild    UD\]' \
        | sed -re's/.*?\] (.*?)-[0-9
------ end: stable-eup.sh ------

---- begin: unstable-eup.sh ----
#! /bin/sh

NOCOLOR="true" emerge -up world \
        | grep '^\[ebuild' \
        | grep '^\[ebuild    UD\]' \
        | sed -re's/.*?\] (.*?)-[0-9].*/\1/' \
        | NOCOLOR="true" ACCEPT_KEYWORDS="~x86" xargs emerge -p \
        | grep '^\[ebuild' \
        | grep -v '^\[ebuild   R  \]' \
        | sed -re's/.*?\] (.*?)-[0-9].*/\1/' \
        | ACCEPT_KEYWORDS="~x86" xargs emerge "$@"
----- end: unstable-eup.sh -----

-- 
Marshall T. Vandegrift <vandem2@rpi.edu>

Disciplined and calm, to await the appearance of
disorder and hubbub amongst the enemy:--this is the
art of retaining self-possession.
	-- Sun Tzu (/The Art of War/, 7:30)

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2003-03-26 11:35     [gentoo-dev] emerge -U world with mixed stable/unstable ebuilds Chris Bainbridge
2003-03-26 14:04 99% ` Marshall T. Vandegrift

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox