From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23196 invoked by uid 1002); 26 Mar 2003 14:05:27 -0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 21301 invoked from network); 26 Mar 2003 14:05:27 -0000 To: gentoo-dev@gentoo.org From: Marshall T. Vandegrift Date: Wed, 26 Mar 2003 09:04:35 -0500 In-Reply-To: <200303261135.49930.C.J.Bainbridge@ed.ac.uk> (Chris Bainbridge's message of "Wed, 26 Mar 2003 11:35:49 +0000") Message-ID: <873cla2pho.fsf@rpi.edu> User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.2 (gnu/linux) References: <200303261135.49930.C.J.Bainbridge@ed.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Subject: Re: [gentoo-dev] emerge -U world with mixed stable/unstable ebuilds X-Archives-Salt: 47ae272c-cc79-4cb2-8cc9-0dbf4f93f498 X-Archives-Hash: be151191171408758fd92e79e2953f63 Trying again, after realizing that gento-dev dislikes attachments... Chris Bainbridge 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 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