X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=gzip.c;h=b867350f08ef11bc43ee344a64f2091c52b9dbe8;hb=05fe02dbed7f6fb55ab7f8fb3d0518b376229047;hp=9e2a890fc12040575a848a90f965ffe48d1ef1db;hpb=a2016c1de6e4884f6c8ed5cc498f3bf821c25ca4;p=debian%2Fgzip diff --git a/gzip.c b/gzip.c index 9e2a890..b867350 100644 --- a/gzip.c +++ b/gzip.c @@ -218,6 +218,7 @@ int ofd; /* output file descriptor */ unsigned insize; /* valid bytes in inbuf */ unsigned inptr; /* index of next byte to be processed in inbuf */ unsigned outcnt; /* bytes in output buffer */ +int rsync = 0; /* make ryncable chunks */ static int handled_sig[] = { @@ -271,6 +272,7 @@ struct option longopts[] = {"best", 0, 0, '9'}, /* compress better */ {"lzw", 0, 0, 'Z'}, /* make output compatible with old compress */ {"bits", 1, 0, 'b'}, /* max number of bits per code (implies -Z) */ + {"rsyncable", 0, 0, 'R'}, /* make rsync-friendly archive */ { 0, 0, 0, 0 } }; @@ -352,6 +354,7 @@ local void help() " -Z, --lzw produce output compatible with old compress", " -b, --bits=BITS max number of bits per code (implies -Z)", #endif + " --rsyncable Make rsync-friendly archive", "", "With no FILE, or when FILE is -, read standard input.", "", @@ -479,6 +482,9 @@ int main (int argc, char **argv) recursive = 1; #endif break; + case 'R': + rsync = 1; break; + case 'S': #ifdef NO_MULTIPLE_DOTS if (*optarg == '.') optarg++;