Added gpg support to lesspipe.sh (#885122)
- Added ~/.lessfilter support (#885122)
This commit is contained in:
parent
4a15a797fc
commit
de1ff32b5a
@ -1,7 +1,7 @@
|
||||
Summary: A text file browser similar to more, but better
|
||||
Name: less
|
||||
Version: 458
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: GPLv3+
|
||||
Group: Applications/Text
|
||||
Source: http://www.greenwoodsoftware.com/less/%{name}-%{version}.tar.gz
|
||||
@ -66,6 +66,10 @@ ls -la $RPM_BUILD_ROOT/etc/profile.d
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%changelog
|
||||
* Thu Apr 11 2013 Fridolin Pokorny <fpokorny@redhat.com> - 458-2
|
||||
- Added gpg support to lesspipe.sh (#885122)
|
||||
- Added ~/.lessfilter support (#885122)
|
||||
|
||||
* Thu Apr 11 2013 Fridolin Pokorny <fpokorny@redhat.com> - 458-1
|
||||
- Update to 458
|
||||
|
||||
|
@ -22,6 +22,14 @@ fi
|
||||
|
||||
exec 2>/dev/null
|
||||
|
||||
# Allow for user defined filters
|
||||
if [ -x ~/.lessfilter ]; then
|
||||
~/.lessfilter "$1"
|
||||
if [ $? -eq 0 ]; then
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
*.[1-9n].bz2|*.[1-9]x.bz2|*.man.bz2|*.[1-9n].[gx]z|*.[1-9]x.[gx]z|*.man.[gx]z|*.[1-9n].lzma|*.[1-9]x.lzma|*.man.lzma)
|
||||
case "$1" in
|
||||
@ -48,6 +56,7 @@ case "$1" in
|
||||
*.zip|*.jar|*.nbm) zipinfo -- "$1" ;;
|
||||
*.rpm) rpm -qpivl --changelog -- "$1" ;;
|
||||
*.cpi|*.cpio) cpio -itv < "$1" ;;
|
||||
*.gpg) gpg -d "$1" ;;
|
||||
*.gif|*.jpeg|*.jpg|*.pcd|*.png|*.tga|*.tiff|*.tif)
|
||||
if [ -x /usr/bin/identify ]; then
|
||||
identify "$1"
|
||||
|
Loading…
Reference in New Issue
Block a user