2014-07-08 18:57 GMT+02:00, Stuart Henderson <st...@openbsd.org>: > On 2014/07/08 18:54, Vadim Zhukov wrote: >> Hoping that /usr/sbin isn't full yet... This makes easier to get to >> package readme files: >> >> - Now you'll have exact command to view all added/changed readme >> files printed right after pkg_add(1) run; >> >> - You can simply type "pkg_readme mysql" if you're not sure what >> and where in MySQL you need to tweak, and still get there. >> >> kirby@ already liked it. Any more thoughts? > > Couldn't this just be a subcommand of pkg_info?
Probably... My intention on a separate utility was like that: 1) pkg_info(1) has too many modes and switches already; 1.1) and both "-r" and "-R" are already taken; "-d" is taken, too, and "-D" is dedicated for totally unrelated things in other pkg_* tools. 2) pkg_readme doesn't access package database internally at all, it only looks at the directory where readme files get installed. This makes code easy to understand, and makes it work almost instant. > (Though personally I am pretty happy with "ln -s > /usr/local/share/doc/pkg-readmes /" ..) Nice idea, BTW. :) In this case the OpenBSD/PackingElement.pm could be tweaked anyway, to at least help you typing "less `ls -t /pkg-readmes | tail -#`" after running pkg_add. -- WBR, Vadim Zhukov