summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-07-21 01:28:59 +0000
committerMike Frysinger <vapier@gentoo.org>2005-07-21 01:28:59 +0000
commit2d5cac699eb23dd44e6387f43c8d039f44bb2ea0 (patch)
treef6cc7270f78f33436ba4064682f408d275f4b8c6 /sys-apps/less
parentRedo spool directory stuff again, as torque still complains at me. Also move ... (diff)
downloadgentoo-2-2d5cac699eb23dd44e6387f43c8d039f44bb2ea0.tar.gz
gentoo-2-2d5cac699eb23dd44e6387f43c8d039f44bb2ea0.tar.bz2
gentoo-2-2d5cac699eb23dd44e6387f43c8d039f44bb2ea0.zip
add support for showing archives (*.a) and debian packages (*.deb)
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'sys-apps/less')
-rw-r--r--sys-apps/less/files/lesspipe.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys-apps/less/files/lesspipe.sh b/sys-apps/less/files/lesspipe.sh
index c8a2dd617cfb..cc3c53fa1fd2 100644
--- a/sys-apps/less/files/lesspipe.sh
+++ b/sys-apps/less/files/lesspipe.sh
@@ -50,6 +50,9 @@ lesspipe() {
*.arj) unarj l -- "$1" ;;
*.cab) cabextract -l -- "$1" ;;
*.7z) 7z l -- "$1" ;;
+ *.a) ar tv "$1" ;;
+ *.deb) ar tv "$1"
+ ar p "$1" data.tar.gz | tar tzvvf - ;;
### Media ###
*.gif|*.jpeg|*.jpg|*.pcd|*.png|*.tga|*.tiff|*.tif|*.bmp)