View previous topic :: View next topic |
Author |
Message |
twistor n00b
Joined: 30 Aug 2004 Posts: 41
|
Posted: Tue Oct 31, 2006 8:04 am Post subject: Stupid Elog Script |
|
|
I get annoyed trying to read each file in the elog directory seeing as how most of them are repeated from previous merges. So I wrote this stupid script to get through them faster. Maybe someone else can use or improve it.
Code: |
#!/bin/bash
logdir="/var/log/portage/elog/"
OPTIONS="Delete Perform Skip Quit"
menu1 () {
echo "$line"
select opt in $OPTIONS; do
if [ "$opt" = "Quit" ]; then
clear
echo "done"
exit
elif [ "$opt" = "Delete" ]; then
rm "$logdir$1"
clear
return
elif [ "$opt" = "Perform" ]; then
clear
cat "$logdir$1"
exit
elif [ "$opt" = "Skip" ]; then
clear
return
else
clear
echo "Bad Option"
fi
done
}
for line in $(ls $logdir); do
cat "$logdir$line"
menu1 $line
done
|
Just a note, perform doesnt actually perform anything it just quits while reprinting the log on the screen so you can see what to do.
Also, I am not a programmer in any way shape or form. |
|
Back to top |
|
|
ppurka Advocate
Joined: 26 Dec 2004 Posts: 3256
|
Posted: Tue Oct 31, 2006 7:44 pm Post subject: |
|
|
There is already a "elogviewer" somewhere in this forum. And there are several versions of that (kelogviewer, etc) also present in some thread. The search function might help. |
|
Back to top |
|
|
twistor n00b
Joined: 30 Aug 2004 Posts: 41
|
Posted: Thu Nov 02, 2006 8:51 am Post subject: |
|
|
thanks for the info |
|
Back to top |
|
|
V-Li Retired Dev
Joined: 03 Jan 2006 Posts: 613
|
Posted: Mon Nov 06, 2006 1:36 am Post subject: |
|
|
And now a text mode and a GTK+ frontend are to be found in Portage
app-portage/elogv
app-portage/elogviewer |
|
Back to top |
|
|
|