From 61f34a88a431ab344a6a2a8b97d7d3278db626a8 Mon Sep 17 00:00:00 2001 From: Ivana Varekova Date: Wed, 7 Feb 2007 12:53:46 +0000 Subject: [PATCH] remove files to enable the change of permissions --- less.csh | 4 ---- less.sh | 2 -- lesspipe.sh | 53 ----------------------------------------------------- 3 files changed, 59 deletions(-) delete mode 100755 less.csh delete mode 100755 less.sh delete mode 100755 lesspipe.sh diff --git a/less.csh b/less.csh deleted file mode 100755 index 709dc2d..0000000 --- a/less.csh +++ /dev/null @@ -1,4 +0,0 @@ -# less initialization script (csh) -if ( -x /usr/bin/lesspipe.sh ) then - setenv LESSOPEN "|/usr/bin/lesspipe.sh %s" -endif diff --git a/less.sh b/less.sh deleted file mode 100755 index a7569fb..0000000 --- a/less.sh +++ /dev/null @@ -1,2 +0,0 @@ -# less initialization script (sh) -[ -x /usr/bin/lesspipe.sh ] && export LESSOPEN="|/usr/bin/lesspipe.sh %s" diff --git a/lesspipe.sh b/lesspipe.sh deleted file mode 100755 index d3b7150..0000000 --- a/lesspipe.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh - -# -# To use this filter with less, define LESSOPEN: -# export LESSOPEN="|/usr/bin/lesspipe.sh %s" - -lesspipe() { - case "$1" in - *.[1-9n]|*.man|*.[1-9n].bz2|*.man.bz2|*.[1-9].gz|*.[1-9]x.gz|*.[1-9].man.gz) - case "$1" in - *.gz) DECOMPRESSOR="gunzip -c" ;; - *.bz2) DECOMPRESSOR="bunzip2 -c" ;; - *) DECOMPRESSOR="cat" ;; - esac - if $DECOMPRESSOR -- "$1" | file - | grep -q troff; then - if echo "$1" | grep -q ^/; then #absolute path - man -- "$1" | cat -s - else - man -- "./$1" | cat -s - fi - else - $DECOMPRESSOR -- "$1" - fi ;; - *.tar) tar tvvf "$1" ;; - *.tgz|*.tar.gz|*.tar.[zZ]) tar tzvvf "$1" ;; - *.tar.bz2|*.tbz2) bzip2 -dc -- "$1" | tar tvvf - ;; - *.[zZ]|*.gz) gzip -dc -- "$1" ;; - *.bz2) bzip2 -dc -- "$1" ;; - *.zip) zipinfo -- "$1" ;; - *.rpm) rpm -qpivl --changelog -- "$1" ;; - *.cpi|*.cpio) cpio -itv < "$1" ;; - *.gif|*.jpeg|*.jpg|*.pcd|*.png|*.tga|*.tiff|*.tif) - if [ -x "`which identify`" ]; then - identify "$1" - else - echo "No identify available" - echo "Install ImageMagick to browse images" - fi ;; - *) - case "$1" in - *.gz) DECOMPRESSOR="gunzip -c" ;; - *.bz2) DECOMPRESSOR="bunzip2 -c" ;; - esac - if [ ! -z $DECOMPRESSOR ] ; then - $DECOMPRESSOR -- "$1" ; - fi - esac -} - -if [ -d "$1" ] ; then - /bin/ls -alF -- "$1" -else - lesspipe "$1" 2> /dev/null -fi