On Mon, 20 Jun 2005, Scott Dylewski wrote: > I'm using mjpegtools in my own scripts, and can't seem to find a way to > determine the installed version of mjpegtools if I didn't install it > with rpm. Can anybody tell me how to do it? I tried --version, but that > isn't documented, and doesn't work.
pkg-config --modversion mjpegtools 1.7.0 If the tools are installed but no pkgconfig file is found then it's likely to be the old version. Alternatively mplex's help option output can be used: mplex -h mjpegtools mplex-2 version 1.7.0 (2.2.3) Usage: mplex [params] -o <output filename pattern> <input file>... > mjpegtools (ppmtoy4m is what I need) to output their current version Probably best to use pnmtoy4m - and if that exists you're using 1.7.x or newer anyhow and don't need to bother checking the version :) Steven Schultz ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users