From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=DMARC_MISSING, MAILING_LIST_MULTI,NICE_REPLY_A autolearn=unavailable autolearn_force=no version=4.0.0 Received: from sc.am (sc.am [66.247.109.82]) by chiba.3jane.net (Postfix) with SMTP id CE297AC60F for ; Fri, 26 Jul 2002 15:01:30 -0500 (CDT) Received: (qmail 19193 invoked from network); 26 Jul 2002 20:03:04 -0000 Received: from unknown (HELO sc.am) (127.0.0.1) by 127.0.0.1 with SMTP; 26 Jul 2002 20:03:04 -0000 Received: from 12.247.253.40 (SquirrelMail authenticated user gregg) by sc.am with HTTP; Fri, 26 Jul 2002 15:03:04 -0500 (CDT) Message-ID: <2491.12.247.253.40.1027713784.squirrel@sc.am> Date: Fri, 26 Jul 2002 15:03:04 -0500 (CDT) Subject: Re: [gentoo-dev] new package notification From: "Gregg" To: In-Reply-To: <3D41A90E.4020408@seul.org> References: <2155.12.247.253.40.1027701888.squirrel@sc.am> <200207261920.26542.arutha@gmx.de> <2317.12.247.253.40.1027709406.squirrel@sc.am> <3D41A90E.4020408@seul.org> X-Priority: 3 Importance: Normal X-MSMail-Priority: Normal Cc: Reply-To: gregg@sc.am X-Mailer: SquirrelMail (version 1.2.7) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: gentoo-dev-admin@gentoo.org Errors-To: gentoo-dev-admin@gentoo.org X-BeenThere: gentoo-dev@gentoo.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Gentoo Linux developer list List-Unsubscribe: , List-Archive: X-Archives-Salt: bf66ae68-eb9e-409f-8f39-7df1118fa488 X-Archives-Hash: b5ff17c646076e4a17794e787785d9f7 Also, as per my last email with the other script that was being worked on. Ive noticed that the find in that one is faster because of the min and max depth settings. These 2 seem to be perfect for merging together then having exactly what we want, with it being quick and easy. Gregg > (sorry for posting this message on a new thread but > I had some problems with the headers of the original message) > > Gregg wrote: > > So... > > > > Something along these lines is in order: > > > > rm /root/before > > rm /root/after > > rm /root/new > > find /usr/portage -type d | grep -i -v files >/root/before > > emerge rsync > > find /usr/portage -type d | grep -i -v files >/root/after > > diff /root/before /root/after | tee /root/new > > > > > > That cleans up the old files, buids the before list, emerged, builds > the after (both ignoring the files directory,) and then outputs the > diff to screen and file > > good. This is a script based on your idea. > It it configurable and sends colorized output with package description > to the screen, while mainaining the log in the file. > The log file contains only /usr/portage/... files (no diff trash) > > The base directory is configurable (default /root) and the files > are called emerge-rsync.before|after|new. However I think it would be > better to store them somewhere in /var (/var/db/pkg/portage/... > /var/log) because I don't like messing in the home directory, > and if we are going to make it a system utility it should be > well integrated. > > Marko > > script (cannot send attachments): > > !/bin/sh > BASE=/root > USE_COLORS=yes > > # end user configuration section > > BEFORE=$BASE/ebuild-rsync.before > AFTER=$BASE/ebuild-rsync.after > NEW=$BASE/ebuild-rsync.new > > if [ "$USE_COLORS" == "yes" ]; then > GREEN="\033[;32m" > NORMAL="\033[m" > fi > > find /usr/portage -type d | grep -i -v files >$BEFORE > emerge rsync > find /usr/portage -type d | grep -i -v files >$AFTER > diff $BEFORE $AFTER | grep /usr/portage | sed "s/> //g" > $NEW > > # cleanup > rm $BEFORE $AFTER > > # display > echo > echo New ebuilds: > for i in $(cat $NEW); do > . $(ls $i/*.ebuild --sort=time | head -n 1) > > echo -e $GREEN${i##/usr/portage/}$NORMAL: $DESCRIPTION > done > > > > > > > _______________________________________________ > gentoo-dev mailing list > gentoo-dev@gentoo.org > http://lists.gentoo.org/mailman/listinfo/gentoo-dev