SOURCES: lesspipe.sh - look inside .phar files
glen
glen at pld-linux.org
Sun Oct 9 16:46:24 CEST 2005
Author: glen Date: Sun Oct 9 14:46:24 2005 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- look inside .phar files
---- Files affected:
SOURCES:
lesspipe.sh (1.16 -> 1.17)
---- Diffs:
================================================================
Index: SOURCES/lesspipe.sh
diff -u SOURCES/lesspipe.sh:1.16 SOURCES/lesspipe.sh:1.17
--- SOURCES/lesspipe.sh:1.16 Sat Mar 5 17:38:22 2005
+++ SOURCES/lesspipe.sh Sun Oct 9 16:46:19 2005
@@ -26,7 +26,7 @@
lesspipe() {
case "$1" in
- *.tar) tar tvvf "$1" ;;
+ *.tar|*.phar) tar tvvf "$1" ;;
*.tgz|*.tar.gz|*.tar.[Zz]) tar tzvvf "$1" ;;
*.tbz2|*.tar.bz2) bzip2 -dc -- "$1" | tar tvvf - ;;
*.[Zz]|*.gz) gzip -dc -- "$1" ;;
@@ -36,10 +36,11 @@
*.rpm) rpm -qpivl --changelog -- "$1" ;;
*.rar) unrar -p- l -- "$1" ;;
*.cpi|*.cpio) cpio -itv < "$1" ;;
- # SSL CERTS
+ # SSL certs
*.csr) openssl req -noout -text -in "$1" ;;
*.crl) openssl crl -noout -text -in "$1" ;;
*.crt) openssl x509 -noout -text -in "$1" ;;
+ # 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`
if [ "$FILE" = "troff" ]; then
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/lesspipe.sh?r1=1.16&r2=1.17&f=u
More information about the pld-cvs-commit
mailing list