SOURCES: lesspipe.sh - formatting - comment out void code
glen
glen at pld-linux.org
Tue Nov 25 00:07:52 CET 2008
Author: glen Date: Mon Nov 24 23:07:52 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- formatting
- comment out void code
---- Files affected:
SOURCES:
lesspipe.sh (1.32 -> 1.33)
---- Diffs:
================================================================
Index: SOURCES/lesspipe.sh
diff -u SOURCES/lesspipe.sh:1.32 SOURCES/lesspipe.sh:1.33
--- SOURCES/lesspipe.sh:1.32 Sat Nov 8 16:11:06 2008
+++ SOURCES/lesspipe.sh Tue Nov 25 00:07:47 2008
@@ -71,13 +71,17 @@
# gnupg armored files
*.asc) gpg --homedir=/dev/null "$1" 2>/dev/null ;;
# Possible manual pages
- *.1|*.2|*.3|*.4|*.5|*.6|*.7|*.8|*.9|*.l|*.n|*.man) FILE=`file -L "$1"` ; # groff src
- FILE=`echo $FILE | cut -d ' ' -f 2`
+ *.1|*.2|*.3|*.4|*.5|*.6|*.7|*.8|*.9|*.l|*.n|*.man)
+ FILE=$(file -L "$1") # groff src
+ FILE=$(echo $FILE | cut -d ' ' -f 2)
if [ "$FILE" = "troff" ]; then
groff -s -p -t -e -Tlatin1 -mandoc "$1"
- fi ;;
- *) FILE=`file -L "$1"` ; # Check to see if binary, if so -- view with 'strings'
- esac
+ fi
+ ;;
+ *)
+ # Check to see if binary, if so -- view with 'strings'
+ # FILE=$(file -L "$1")
+ esac
}
if [ -d "$1" ] ; then
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/lesspipe.sh?r1=1.32&r2=1.33&f=u
More information about the pld-cvs-commit
mailing list