package less tags 418943 + patch thanks On Thursday 12 April 2007 17:51:10 pm you wrote: > On Thu, Apr 12, 2007 at 05:38:30PM -0400, Daniel Schepler wrote: > >As the subject says, it would be useful to be able to run less on lzma > > files the same as gzip and bzip2. The code should be easy; if you need > > me to write a patch, let me know. > > Please send me the patch.
Here it is. -- Daniel Schepler
--- debian/lesspipe~ 2007-04-12 17:55:32.000000000 -0400 +++ debian/lesspipe 2007-04-12 18:01:08.000000000 -0400 @@ -134,6 +134,15 @@ if [ -x "`which lha`" ]; then lha v "$1" else echo "No lha available"; fi ;; + *.tar.lzma) + if [ -x "`which lzma`" ]; then + lzma -dc "$1" | tar tfvv - + else echo "No lzma available"; fi ;; + + *.lzma) + if [ -x "`which lzma`" ]; then lzma -dc "$1" + else echo "No lzma available"; fi ;; + *.pdf) if [ -x "`which pdftotext`" ]; then pdftotext "$1" - else echo "No pdftotext available"; fi ;;

