delete trailing whitespace from control files
[debian/gzip] / zcmp.in
1 #!/bin/sh
2 # Compare the uncompressed contents of compressed files, byte by byte.
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="zcmp (gzip) @VERSION@
21 Copyright (C) 2010 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]... FILE1 [FILE2]
29 Compare FILE1 to FILE2 byte by byte, using their uncompressed contents
30 if they are compressed.  If FILE2 is omitted, compare FILE1 to the
31 uncompressed contents of FILE1.gz.  Do comparisons like 'cmp' does.
32
33 Options are the same as for 'cmp'.
34
35 If a FILE is '-' or missing, read standard input.
36
37 Report bugs to <bug-gzip@gnu.org>."
38
39 case $1 in
40 --help)    printf '%s\n' "$usage"   || exit 2; exit;;
41 --version) printf '%s\n' "$version" || exit 2; exit;;
42 esac
43
44 exec zdiff --__cmp "$@"