X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=zcmp.in;h=28b9350c2139afadc272f2ad03965415d7394f63;hb=baf8c7dd1f7954fc9b8b19469f5c3ea5d27d6c85;hp=d3fb95674990af0a74996345597af9439d3d14de;hpb=a2016c1de6e4884f6c8ed5cc498f3bf821c25ca4;p=debian%2Fgzip diff --git a/zcmp.in b/zcmp.in index d3fb956..28b9350 100644 --- a/zcmp.in +++ b/zcmp.in @@ -1,7 +1,7 @@ #!/bin/sh # Compare the uncompressed contents of compressed files, byte by byte. -# Copyright (C) 2007 Free Software Foundation +# Copyright (C) 2007, 2010-2013 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -24,7 +24,7 @@ esac PATH=$bindir:$PATH version="zcmp (gzip) @VERSION@ -Copyright (C) 2007, 2009-2010 Free Software Foundation, Inc. +Copyright (C) 2010 Free Software Foundation, Inc. This is free software. You may redistribute copies of it under the terms of the GNU General Public License . There is NO WARRANTY, to the extent permitted by law. @@ -42,9 +42,10 @@ If a FILE is '-' or missing, read standard input. Report bugs to ." +st=0 case $1 in ---help) exec echo "$usage";; ---version) exec echo "$version";; +--help) echo "$usage" || st=2; exit $st;; +--version) echo "$version" || st=2; exit $st;; esac -exec zdiff --__cmp "$@" +exec zdiff --__bindir "$bindir" --__cmp "$@"