Tag: patch

I attach a patch adding support for lzip to lesspipe.

Best regards,
Antonio.
diff -urdN debian/lesspipe debian.new/lesspipe
--- debian/lesspipe     2009-04-18 13:41:40.000000000 +0200
+++ debian.new/lesspipe 2011-01-10 13:34:05.000000000 +0100
@@ -143,6 +143,18 @@
                                if [ -x "`which lha`" ]; then lha v "$1"
                                else echo "No lha available"; fi ;;
 
+                       *.tar.lz|*.tlz)
+                               if [ -x "`which lzip`" ]; then
+                                       lzip -dc "$1" | tar tvvf -
+                               elif [ -x "`which lunzip`" ]; then
+                                       lunzip -dc "$1" | tar tvvf -
+                               else echo "No lzip or lunzip available"; fi ;;
+
+                       *.lz)
+                               if [ -x "`which lzip`" ]; then lzip -dc "$1"
+                               elif [ -x "`which lunzip`" ]; then lunzip -dc 
"$1"
+                               else echo "No lzip or lunzip available"; fi ;;
+
                        *.tar.lzma)
                                if [ -x "`which lzma`" ]; then
                                        lzma -dc "$1" | tar tfvv -
diff -urdN debian/lesspipe.1 debian.new/lesspipe.1
--- debian/lesspipe.1   2007-10-22 13:03:49.000000000 +0200
+++ debian.new/lesspipe.1       2011-01-10 13:34:05.000000000 +0100
@@ -70,6 +70,8 @@
   *.gif, *.jpeg, *.jpg, *.pcd, *.png, *.tga, *.tiff, *.tif
   *.iso, *.raw, *.bin
   *.lha, *.lzh
+  *.tar.lz, *.tlz
+  *.lz
   *.pdf
   *.rar, *.r[0-9][0-9]
   *.rpm

Reply via email to