On Sun, 30 Mar 2008 21:26:12 +0400, Andrew Gaydenko wrote:
> Is there such one?
emerge -l package | less?
--
Neil Bothwick
Loose bits sink chips.
03-31-2008, 03:16 AM
Andrew Gaydenko
fast CLI package-Changelog viewer
Hi!
======= On Monday 31 March 2008, you wrote: =======
> On Sun, 30 Mar 2008 21:26:12 +0400, Andrew Gaydenko wrote:
> > Is there such one?
>
> emerge -l package | less?
I have tried it. Unfortunately, it is slow and ... well, it doesn't show
Changelog to me :-) Say, this is full output:
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] dev-java/sun-jdk-1.6.0.05-r1
--
gentoo-user@lists.gentoo.org mailing list
03-31-2008, 08:07 AM
Neil Bothwick
fast CLI package-Changelog viewer
On Mon, 31 Mar 2008 07:16:17 +0400, Andrew Gaydenko wrote:
> emerge -l sun-jdk
> [...]
>
> These are the packages that would be merged, in order:
>
> Calculating dependencies... done!
> [ebuild R ] dev-java/sun-jdk-1.6.0.05-r1
You already have the latest version installed, so there are no changes to
show.
--
Neil Bothwick
Voting Democrat or Republican is like choosing a cabin in the Titanic.
03-31-2008, 08:17 AM
Andrew Gaydenko
fast CLI package-Changelog viewer
Hi!
======= On Monday 31 March 2008, you wrote: =======
> On Mon, 31 Mar 2008 07:16:17 +0400, Andrew Gaydenko wrote:
> > emerge -l sun-jdk
> > [...]
> >
> > These are the packages that would be merged, in order:
> >
> > Calculating dependencies... done!
> > [ebuild R ] dev-java/sun-jdk-1.6.0.05-r1
>
> You already have the latest version installed, so there are no
> changes to show.
Neil,
I'm not interested in (probable) installation at all, rather in
Changelog' contents only.
--
gentoo-user@lists.gentoo.org mailing list
03-31-2008, 09:17 AM
Neil Bothwick
fast CLI package-Changelog viewer
On Mon, 31 Mar 2008 12:17:41 +0400, Andrew Gaydenko wrote:
> I'm not interested in (probable) installation at all, rather in
> Changelog' contents only.
Your original question was rather light on such details, and also omitted
to mention why more/less/most are inadequate for your needs.
--
Neil Bothwick
I'll try being nicer if you'll try being smarter.
03-31-2008, 09:31 AM
Andrew Gaydenko
fast CLI package-Changelog viewer
======= On Monday 31 March 2008, you wrote: =======
> On Mon, 31 Mar 2008 12:17:41 +0400, Andrew Gaydenko wrote:
> > I'm not interested in (probable) installation at all, rather in
> > Changelog' contents only.
>
> Your original question was rather light on such details, and also
> omitted to mention why more/less/most are inadequate for your needs.
Neil,
My first message was:
Subject: fast CLI package-Changelog viewer
Body: Is there such one?
I agree, my English is ugly. I'll try to explain. Saying "viewer" I mean
something like this:
logviewer kdelibs
will "produce" the same output as, say,
less /usr/portage/kde-base/kdelibs/ChangeLog
You see, it is impossible to remember all packages' dirs. Of course, I
can use 'q' or 'eix' to find a dir and then type in a long 'less ...'
command. But, well, why do all these 'eix' and 'q' exist? I think to
save some users' time. Is my intention more clear now? :-)
--
gentoo-user@lists.gentoo.org mailing list
03-31-2008, 09:45 AM
Neil Bothwick
fast CLI package-Changelog viewer
On Mon, 31 Mar 2008 13:31:14 +0400, Andrew Gaydenko wrote:
> logviewer kdelibs
>
> will "produce" the same output as, say,
>
> less /usr/portage/kde-base/kdelibs/ChangeLog
>
> You see, it is impossible to remember all packages' dirs. Of course, I
> can use 'q' or 'eix' to find a dir and then type in a long 'less ...'
> command. But, well, why do all these 'eix' and 'q' exist? I think to
> save some users' time. Is my intention more clear now? :-)
Yes it is, but a very short shell script would handle this
#!/bin/sh
less $(portageq portdir)/$(eix --exact --only-names $1)/ChangeLog
--
Neil Bothwick
Das Internet is nicht fuer gefingerclicken und giffengrabben. Ist easy
droppenpacket der routers und overloaden der backbone mit der spammen
und der me-tooen. Ist nicht fuer gewerken bei das dumpkopfen. Das
mausklicken sichtseeren keepen das bandwit-spewin hans in das pockets
muss; relaxen und watchen das cursorblinken.
03-31-2008, 10:02 AM
Andrew Gaydenko
fast CLI package-Changelog viewer
======= On Monday 31 March 2008, Neil Bothwick wrote: =======
...
> Yes it is, but a very short shell script would handle this
>
> #!/bin/sh
> less $(portageq portdir)/$(eix --exact --only-names $1)/ChangeLog
Thanks, it works! (except for overlays)
--
gentoo-user@lists.gentoo.org mailing list
03-31-2008, 10:22 AM
Etaoin Shrdlu
fast CLI package-Changelog viewer
On Monday 31 March 2008, 11:31, Andrew Gaydenko wrote:
> I agree, my English is ugly. I'll try to explain. Saying "viewer" I
> mean something like this:
>
> logviewer kdelibs
>
> will "produce" the same output as, say,
>
> less /usr/portage/kde-base/kdelibs/ChangeLog
>
> You see, it is impossible to remember all packages' dirs. Of course, I
> can use 'q' or 'eix' to find a dir and then type in a long 'less ...'
> command. But, well, why do all these 'eix' and 'q' exist? I think to
> save some users' time. Is my intention more clear now? :-)
Neil will surely provide an adequate answer, however, if your needs
aren't too sophisticated, you could put together something like
$ cat logviewer.sh
#!/bin/bash
if [ -z "$1" ]; then
echo "Must specify package name!" >&2
exit 1
fi
p=`eix --only-names -e "$1"`
if [ -z "$p" ]; then
echo "$1: No matches found" >&2
exit 1
else
howmany=`echo "$p" | wc -l`
if [ "$howmany" -gt 1 ]; then
echo "Many packages with the same name, refine search string:" >&2
echo "$p" >&2
exit 1
fi
fi
c="/usr/portage/${p}/ChangeLog"
if [ -z "$EDITOR" ]; then
EDITOR=`which vi`
fi
"$EDITOR" "$c"
---------
You can also remove the "-e" from the eix line if you want approximate
matching (that will require you to specify the category almost always
though).
Hope this helps.
--
gentoo-user@lists.gentoo.org mailing list
03-31-2008, 10:25 AM
Neil Bothwick
fast CLI package-Changelog viewer
On Mon, 31 Mar 2008 14:02:15 +0400, Andrew Gaydenko wrote:
> > less $(portageq portdir)/$(eix --exact --only-names $1)/ChangeLog
>
> Thanks, it works! (except for overlays)
It is more a starting point than a complete solution You could also
modify it to do a regexp search is the exact match fails.