- (lesspipe) the groff was used just in case of gzipped man pages
- (lesspipe) the exit $? should be used directly after command; otherwise may return unexpected value. - (lesspipe) not preprocessed output was returning 1
This commit is contained in:
parent
a1689649cb
commit
532ba4528e
@ -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: 458
|
Version: 458
|
||||||
Release: 7%{?dist}
|
Release: 8%{?dist}
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
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
|
||||||
@ -76,6 +76,12 @@ ls -la $RPM_BUILD_ROOT/etc/profile.d
|
|||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu May 22 2014 Jozef Mlich <jmlich@redhat.com> - 458-8
|
||||||
|
- (lesspipe) the groff was used just in case of gzipped man pages
|
||||||
|
- (lesspipe) the exit $? should be used directly after command;
|
||||||
|
otherwise may return unexpected value.
|
||||||
|
- (lesspipe) not preprocessed output was returning 1
|
||||||
|
|
||||||
* Mon Mar 31 2014 Jozef Mlich <jmlich@redhat.com> - 458-7
|
* Mon Mar 31 2014 Jozef Mlich <jmlich@redhat.com> - 458-7
|
||||||
- FIXES outdated ubin_table in charset.c;
|
- FIXES outdated ubin_table in charset.c;
|
||||||
Kudos to Akira TAGOH
|
Kudos to Akira TAGOH
|
||||||
|
@ -43,7 +43,7 @@ case "$1" in
|
|||||||
fi ;;&
|
fi ;;&
|
||||||
*.[1-9n]|*.[1-9]x|*.man)
|
*.[1-9n]|*.[1-9]x|*.man)
|
||||||
if file "$1" | grep -q troff; then
|
if file "$1" | grep -q troff; then
|
||||||
man -l "$1" | cat -s
|
groff -Tascii -mandoc "$1" | cat -s
|
||||||
exit $?
|
exit $?
|
||||||
fi ;;&
|
fi ;;&
|
||||||
*.tar) tar tvvf "$1" ;;
|
*.tar) tar tvvf "$1" ;;
|
||||||
@ -60,8 +60,10 @@ case "$1" in
|
|||||||
*.gif|*.jpeg|*.jpg|*.pcd|*.png|*.tga|*.tiff|*.tif)
|
*.gif|*.jpeg|*.jpg|*.pcd|*.png|*.tga|*.tiff|*.tif)
|
||||||
if [ -x /usr/bin/identify ]; then
|
if [ -x /usr/bin/identify ]; then
|
||||||
identify "$1"
|
identify "$1"
|
||||||
|
exit $?
|
||||||
elif [ -x /usr/bin/gm ]; then
|
elif [ -x /usr/bin/gm ]; then
|
||||||
gm identify "$1"
|
gm identify "$1"
|
||||||
|
exit $?
|
||||||
else
|
else
|
||||||
echo "No identify available"
|
echo "No identify available"
|
||||||
echo "Install ImageMagick or GraphicsMagick to browse images"
|
echo "Install ImageMagick or GraphicsMagick to browse images"
|
||||||
@ -81,7 +83,8 @@ case "$1" in
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
exit 1
|
cat "$1"
|
||||||
|
exit $?
|
||||||
esac
|
esac
|
||||||
exit $?
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user