* [gentoo-user] fast CLI package-Changelog viewer @ 2008-03-30 17:26 Andrew Gaydenko 2008-03-30 20:10 ` Neil Bothwick 0 siblings, 1 reply; 13+ messages in thread From: Andrew Gaydenko @ 2008-03-30 17:26 UTC (permalink / raw To: gentoo-user Is there such one? -- gentoo-user@lists.gentoo.org mailing list ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] fast CLI package-Changelog viewer 2008-03-30 17:26 [gentoo-user] fast CLI package-Changelog viewer Andrew Gaydenko @ 2008-03-30 20:10 ` Neil Bothwick 2008-03-31 3:16 ` Andrew Gaydenko 0 siblings, 1 reply; 13+ messages in thread From: Neil Bothwick @ 2008-03-30 20:10 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 163 bytes --] 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. [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 197 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] fast CLI package-Changelog viewer 2008-03-30 20:10 ` Neil Bothwick @ 2008-03-31 3:16 ` Andrew Gaydenko 2008-03-31 8:07 ` Neil Bothwick 0 siblings, 1 reply; 13+ messages in thread From: Andrew Gaydenko @ 2008-03-31 3:16 UTC (permalink / raw To: gentoo-user 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: emerge -l sun-jdk >>> --changelog implies --pretend... adding --pretend to options. 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 ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] fast CLI package-Changelog viewer 2008-03-31 3:16 ` Andrew Gaydenko @ 2008-03-31 8:07 ` Neil Bothwick 2008-03-31 8:17 ` Andrew Gaydenko 0 siblings, 1 reply; 13+ messages in thread From: Neil Bothwick @ 2008-03-31 8:07 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 428 bytes --] 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. [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 197 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] fast CLI package-Changelog viewer 2008-03-31 8:07 ` Neil Bothwick @ 2008-03-31 8:17 ` Andrew Gaydenko 2008-03-31 9:17 ` Neil Bothwick 0 siblings, 1 reply; 13+ messages in thread From: Andrew Gaydenko @ 2008-03-31 8:17 UTC (permalink / raw To: gentoo-user 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 ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] fast CLI package-Changelog viewer 2008-03-31 8:17 ` Andrew Gaydenko @ 2008-03-31 9:17 ` Neil Bothwick 2008-03-31 9:31 ` Andrew Gaydenko 0 siblings, 1 reply; 13+ messages in thread From: Neil Bothwick @ 2008-03-31 9:17 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 375 bytes --] 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. [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 197 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] fast CLI package-Changelog viewer 2008-03-31 9:17 ` Neil Bothwick @ 2008-03-31 9:31 ` Andrew Gaydenko 2008-03-31 9:45 ` Neil Bothwick 2008-03-31 10:22 ` Etaoin Shrdlu 0 siblings, 2 replies; 13+ messages in thread From: Andrew Gaydenko @ 2008-03-31 9:31 UTC (permalink / raw To: gentoo-user ======= 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 ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] fast CLI package-Changelog viewer 2008-03-31 9:31 ` Andrew Gaydenko @ 2008-03-31 9:45 ` Neil Bothwick 2008-03-31 10:02 ` Andrew Gaydenko 2008-03-31 10:22 ` Etaoin Shrdlu 1 sibling, 1 reply; 13+ messages in thread From: Neil Bothwick @ 2008-03-31 9:45 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 966 bytes --] 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. [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 197 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] fast CLI package-Changelog viewer 2008-03-31 9:45 ` Neil Bothwick @ 2008-03-31 10:02 ` Andrew Gaydenko 2008-03-31 10:25 ` Neil Bothwick 0 siblings, 1 reply; 13+ messages in thread From: Andrew Gaydenko @ 2008-03-31 10:02 UTC (permalink / raw To: gentoo-user ======= 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 ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] fast CLI package-Changelog viewer 2008-03-31 10:02 ` Andrew Gaydenko @ 2008-03-31 10:25 ` Neil Bothwick 0 siblings, 0 replies; 13+ messages in thread From: Neil Bothwick @ 2008-03-31 10:25 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 403 bytes --] 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. -- Neil Bothwick C:\DOS\SYSTEM\OS2\UTILITIES\DOCS\HELP\WHERE\THE\F$#%\AM\I??? [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 197 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] fast CLI package-Changelog viewer 2008-03-31 9:31 ` Andrew Gaydenko 2008-03-31 9:45 ` Neil Bothwick @ 2008-03-31 10:22 ` Etaoin Shrdlu 2008-03-31 11:35 ` Andrew Gaydenko 1 sibling, 1 reply; 13+ messages in thread From: Etaoin Shrdlu @ 2008-03-31 10:22 UTC (permalink / raw To: gentoo-user 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 ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] fast CLI package-Changelog viewer 2008-03-31 10:22 ` Etaoin Shrdlu @ 2008-03-31 11:35 ` Andrew Gaydenko 2008-03-31 11:40 ` Justin 0 siblings, 1 reply; 13+ messages in thread From: Andrew Gaydenko @ 2008-03-31 11:35 UTC (permalink / raw To: gentoo-user ======= On Monday 31 March 2008, Etaoin Shrdlu wrote: ======= > 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. Thanks! I definitely must read a bash documentaton :-) -- gentoo-user@lists.gentoo.org mailing list ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] fast CLI package-Changelog viewer 2008-03-31 11:35 ` Andrew Gaydenko @ 2008-03-31 11:40 ` Justin 0 siblings, 0 replies; 13+ messages in thread From: Justin @ 2008-03-31 11:40 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 1805 bytes --] Andrew Gaydenko schrieb: > ======= On Monday 31 March 2008, Etaoin Shrdlu wrote: ======= > >> 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. >> > > Thanks! I definitely must read a bash documentaton :-) > I think this will be your friend: http://tldp.org/LDP/abs/html/ [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 252 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2008-03-31 11:40 UTC | newest] Thread overview: 13+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2008-03-30 17:26 [gentoo-user] fast CLI package-Changelog viewer Andrew Gaydenko 2008-03-30 20:10 ` Neil Bothwick 2008-03-31 3:16 ` Andrew Gaydenko 2008-03-31 8:07 ` Neil Bothwick 2008-03-31 8:17 ` Andrew Gaydenko 2008-03-31 9:17 ` Neil Bothwick 2008-03-31 9:31 ` Andrew Gaydenko 2008-03-31 9:45 ` Neil Bothwick 2008-03-31 10:02 ` Andrew Gaydenko 2008-03-31 10:25 ` Neil Bothwick 2008-03-31 10:22 ` Etaoin Shrdlu 2008-03-31 11:35 ` Andrew Gaydenko 2008-03-31 11:40 ` Justin
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox