document mingw linker fix and close associated bug
[debian/gzip] / zcat.in
1 #!/bin/sh
2 # Uncompress files to standard output.
3
4 # Copyright (C) 2007, 2010-2018 Free Software Foundation, Inc.
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 3 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 version="zcat (gzip) @VERSION@
21 Copyright (C) 2007, 2011-2018 Free Software Foundation, Inc.
22 This is free software.  You may redistribute copies of it under the terms of
23 the GNU General Public License <https://www.gnu.org/licenses/gpl.html>.
24 There is NO WARRANTY, to the extent permitted by law.
25
26 Written by Paul Eggert."
27
28 usage="Usage: $0 [OPTION]... [FILE]...
29 Uncompress FILEs to standard output.
30
31   -f, --force       force; read compressed data even from a terminal
32   -l, --list        list compressed file contents
33   -q, --quiet       suppress all warnings
34   -r, --recursive   operate recursively on directories
35   -S, --suffix=SUF  use suffix SUF on compressed files
36       --synchronous synchronous output (safer if system crashes, but slower)
37   -t, --test        test compressed file integrity
38   -v, --verbose     verbose mode
39       --help        display this help and exit
40       --version     display version information and exit
41
42 With no FILE, or when FILE is -, read standard input.
43
44 Report bugs to <bug-gzip@gnu.org>."
45
46 case $1 in
47 --help)    printf '%s\n' "$usage"   || exit 1; exit;;
48 --version) printf '%s\n' "$version" || exit 1; exit;;
49 esac
50
51 exec gzip -cd "$@"