add lzip compression support into lesspipe.sh script
Thanks for the patch to Andrew Schorr. Version: 530-3
This commit is contained in:
parent
92933f680d
commit
02d1df97a0
@ -1,7 +1,7 @@
|
|||||||
Summary: A text file browser similar to more, but better
|
Summary: A text file browser similar to more, but better
|
||||||
Name: less
|
Name: less
|
||||||
Version: 530
|
Version: 530
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: GPLv3+ or BSD
|
License: GPLv3+ or BSD
|
||||||
Group: Applications/Text
|
Group: Applications/Text
|
||||||
Source: http://www.greenwoodsoftware.com/less/%{name}-%{version}.tar.gz
|
Source: http://www.greenwoodsoftware.com/less/%{name}-%{version}.tar.gz
|
||||||
@ -63,6 +63,9 @@ install -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT/etc/profile.d
|
|||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jan 09 2019 Pavel Raiskup <praiskup@redhat.com> - 530-3
|
||||||
|
- add lzip compression support into lesspipe.sh (rhbz#1664383)
|
||||||
|
|
||||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 530-2
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 530-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
|
@ -51,10 +51,11 @@ manfilter ()
|
|||||||
export MAN_KEEP_FORMATTING=1
|
export MAN_KEEP_FORMATTING=1
|
||||||
|
|
||||||
case "$1" in
|
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)
|
*.[1-9n].bz2|*.[1-9]x.bz2|*.man.bz2|*.[1-9n].[glx]z|*.[1-9]x.[glx]z|*.man.[glx]z|*.[1-9n].lzma|*.[1-9]x.lzma|*.man.lzma)
|
||||||
case "$1" in
|
case "$1" in
|
||||||
*.gz) DECOMPRESSOR="gzip -dc" ;;
|
*.gz) DECOMPRESSOR="gzip -dc" ;;
|
||||||
*.bz2) DECOMPRESSOR="bzip2 -dc" ;;
|
*.bz2) DECOMPRESSOR="bzip2 -dc" ;;
|
||||||
|
*.lz) DECOMPRESSOR="lzip -dc" ;;
|
||||||
*.xz|*.lzma) DECOMPRESSOR="xz -dc" ;;
|
*.xz|*.lzma) DECOMPRESSOR="xz -dc" ;;
|
||||||
esac
|
esac
|
||||||
if [ -n "$DECOMPRESSOR" ] && $DECOMPRESSOR -- "$1" | file - | grep -q troff; then
|
if [ -n "$DECOMPRESSOR" ] && $DECOMPRESSOR -- "$1" | file - | grep -q troff; then
|
||||||
@ -70,6 +71,8 @@ case "$1" in
|
|||||||
*.tgz|*.tar.gz|*.tar.[zZ]) tar tzvvf "$1"; exit $? ;;
|
*.tgz|*.tar.gz|*.tar.[zZ]) tar tzvvf "$1"; exit $? ;;
|
||||||
*.tar.xz) tar Jtvvf "$1"; exit $? ;;
|
*.tar.xz) tar Jtvvf "$1"; exit $? ;;
|
||||||
*.xz|*.lzma) xz -dc -- "$1"; exit $? ;;
|
*.xz|*.lzma) xz -dc -- "$1"; exit $? ;;
|
||||||
|
*.tar.lz) tar --lzip -tvvf "$1"; exit $? ;;
|
||||||
|
*.lz) lzip -dc -- "$1"; exit $? ;;
|
||||||
*.tar.bz2|*.tbz2) bzip2 -dc -- "$1" | tar tvvf -; exit $? ;;
|
*.tar.bz2|*.tbz2) bzip2 -dc -- "$1" | tar tvvf -; exit $? ;;
|
||||||
*.[zZ]|*.gz) gzip -dc -- "$1"; exit $? ;;
|
*.[zZ]|*.gz) gzip -dc -- "$1"; exit $? ;;
|
||||||
*.bz2) bzip2 -dc -- "$1"; exit $? ;;
|
*.bz2) bzip2 -dc -- "$1"; exit $? ;;
|
||||||
|
Loading…
Reference in New Issue
Block a user