packages: lesspipe/lesspipe.sh - added default action by run-mailcap (view)...

gotar gotar at pld-linux.org
Thu May 28 02:13:19 CEST 2009


Author: gotar                        Date: Thu May 28 00:13:19 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- added default action by run-mailcap (view) and highlight - works fine for
  me, please test if it doesn't cause any other troubles

---- Files affected:
packages/lesspipe:
   lesspipe.sh (1.36 -> 1.37) 

---- Diffs:

================================================================
Index: packages/lesspipe/lesspipe.sh
diff -u packages/lesspipe/lesspipe.sh:1.36 packages/lesspipe/lesspipe.sh:1.37
--- packages/lesspipe/lesspipe.sh:1.36	Thu May 21 10:29:16 2009
+++ packages/lesspipe/lesspipe.sh	Thu May 28 02:13:14 2009
@@ -78,7 +78,7 @@
 			groff -s -p -t -e -Tlatin1 -mandoc "$1"
 		fi
 		;;
-	*)
+	*) run-mailcap "$1" || highlight --xterm256 --style=darkblue "$1"
    	# Check to see if binary, if so -- view with 'strings'
    	# FILE=$(file -L "$1")
 	esac
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/lesspipe/lesspipe.sh?r1=1.36&r2=1.37&f=u



More information about the pld-cvs-commit mailing list