Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[emerge] report in html form (script)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
mobidyc
Tux's lil' helper
Tux's lil' helper


Joined: 01 May 2006
Posts: 109

PostPosted: Tue Nov 07, 2006 11:40 pm    Post subject: [emerge] report in html form (script) Reply with quote

Hello,

i have searched for receive by mail update notifcations of my ebuilds and i have found....nothing...
so, i 've wrote one.

it's far to be perfect but it do what i wish.

you can download it here: emerge_html_color.sh

if you have comment or need ameliorations, you can send me a mail to: mobidyc at gmail dot com

Regards,
Mobidyc
Back to top
View user's profile Send private message
claw
n00b
n00b


Joined: 26 Jan 2004
Posts: 32
Location: Campbell, CA

PostPosted: Thu Nov 16, 2006 7:55 am    Post subject: Reply with quote

Nice!

Here's a script on the same topic. It locates the final messages from each recent ebuild. You know the ones: the messages that zip by quickly that you wish you could read? Might save you hours of frustration? This script finds them in the log files, and displays them all in chronological order. It sometimes includes some lengthy cruft, but it's pretty useful anyway. It doesn't do e-mail or HTML.

Code:

#!/bin/bash

# Collect and display all final messages from an emerge.

# Usage:
#   emerge-report | less -R


# Load settings.
source /etc/make.conf

if [ -z "$PORT_LOGDIR" ]; then
    echo "PORT_LOGDIR not set in /etc/make.conf"
    echo "No logs on system."
    exit 1
fi

cd "$PORT_LOGDIR"

# Process each log file, oldest first.
for F in `ls -tr *.log`; do
    FINAL=`sed -n -e '/^>>> Done\.$/,$ s/^/  /p' $F | sed -n -e '2,$ p'`
    if [ -n "$FINAL" ]; then
        P1=${F%:*}
        PKG=${P1//://}
        echo $PKG
        echo "$FINAL"
        echo
    fi
done
Back to top
View user's profile Send private message
mark_alec
Bodhisattva
Bodhisattva


Joined: 11 Sep 2004
Posts: 6066
Location: Melbourne, Australia

PostPosted: Thu Nov 16, 2006 10:03 am    Post subject: Reply with quote

Moved from Portage & Programming to Documentation, Tips & Tricks.
_________________
www.gentoo.org.au || #gentoo-au
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum