Regenerte.
[debian/gzip] / zless.in
1 :
2 #!/bin/sh
3
4 # Copyright (C) 1998, 2002, 2006 Free Software Foundation
5
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
10
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15
16 # You should have received a copy of the GNU General Public License along
17 # with this program; if not, write to the Free Software Foundation, Inc.,
18 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19
20 PATH="BINDIR:$PATH"; export PATH
21
22 version="zless (gzip) @VERSION@
23 Copyright (C) 2006 Free Software Foundation, Inc.
24 This is free software.  You may redistribute copies of it under the terms of
25 the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
26 There is NO WARRANTY, to the extent permitted by law.
27
28 Written by Paul Eggert."
29
30 usage="Usage: zless [OPTION]... [FILE]...
31 Like 'less', but operate on the uncompressed contents of any compressed FILEs.
32
33 Options are the same as for 'less'.
34
35 Report bugs to <bug-gzip@gnu.org>."
36
37 case $1 in
38 --help)    exec echo "$usage";;
39 --version) exec echo "$version";;
40 esac
41
42 LESSOPEN="|gzip -cdfq -- %s"; export LESSOPEN
43 exec less "$@"