remove trailing blanks from all but .xz files
This commit is contained in:
parent
667481f1aa
commit
850f740042
|
@ -50,7 +50,7 @@ main(void)
|
||||||
lzma_options_lzma opt_lzma;
|
lzma_options_lzma opt_lzma;
|
||||||
if (lzma_lzma_preset(&opt_lzma, 1))
|
if (lzma_lzma_preset(&opt_lzma, 1))
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
lzma_filter filters[] = {
|
lzma_filter filters[] = {
|
||||||
{
|
{
|
||||||
.id = LZMA_FILTER_LZMA2,
|
.id = LZMA_FILTER_LZMA2,
|
||||||
|
|
|
@ -64,11 +64,11 @@ int main(int argc, char *argv[]) {
|
||||||
ret = fread(buf, BUFSIZE, 1, stdin);
|
ret = fread(buf, BUFSIZE, 1, stdin);
|
||||||
if (ret != 1)
|
if (ret != 1)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* Scan for signature. */
|
/* Scan for signature. */
|
||||||
for (i = 0; i<BUFSIZE-23; i++) {
|
for (i = 0; i<BUFSIZE-23; i++) {
|
||||||
if (find_lzma_header(buf+i) && numlzma-- <= 0) {
|
if (find_lzma_header(buf+i) && numlzma-- <= 0) {
|
||||||
fwrite(buf+i, (BUFSIZE-i), 1, stdout);
|
fwrite(buf+i, (BUFSIZE-i), 1, stdout);
|
||||||
for (;;) {
|
for (;;) {
|
||||||
int ch;
|
int ch;
|
||||||
ch = getchar();
|
ch = getchar();
|
||||||
|
@ -76,7 +76,6 @@ int main(int argc, char *argv[]) {
|
||||||
exit(0);
|
exit(0);
|
||||||
putchar(ch);
|
putchar(ch);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
blocks++;
|
blocks++;
|
||||||
|
|
|
@ -70,7 +70,7 @@ print_crc32_table(void)
|
||||||
printf("0x%08" PRIX32, crc32_table[s][b]);
|
printf("0x%08" PRIX32, crc32_table[s][b]);
|
||||||
|
|
||||||
if (b != 255)
|
if (b != 255)
|
||||||
printf(", ");
|
printf(",%s", (b+1) % 4 == 0 ? "" : " ");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (s == 7)
|
if (s == 7)
|
||||||
|
|
|
@ -71,7 +71,7 @@ print_crc64_table(void)
|
||||||
crc64_table[s][b]);
|
crc64_table[s][b]);
|
||||||
|
|
||||||
if (b != 255)
|
if (b != 255)
|
||||||
printf(", ");
|
printf(",%s", (b+1) % 2 == 0 ? "" : " ");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (s == 3)
|
if (s == 3)
|
||||||
|
|
|
@ -9,7 +9,7 @@ lzcmp, lzdiff \- compare LZMA compressed files
|
||||||
.RI [ diff_options "] " file1 " [" file2 ]
|
.RI [ diff_options "] " file1 " [" file2 ]
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
.B lzcmp
|
.B lzcmp
|
||||||
and
|
and
|
||||||
.B zdiff
|
.B zdiff
|
||||||
are used to invoke the
|
are used to invoke the
|
||||||
.BR cmp (1)
|
.BR cmp (1)
|
||||||
|
@ -27,7 +27,7 @@ If two files are specified, then they are uncompressed if necessary and fed to
|
||||||
.B cmp
|
.B cmp
|
||||||
or
|
or
|
||||||
.BR diff "."
|
.BR diff "."
|
||||||
The exit status from
|
The exit status from
|
||||||
.B cmp
|
.B cmp
|
||||||
or
|
or
|
||||||
.B diff
|
.B diff
|
||||||
|
|
|
@ -28,12 +28,12 @@ is used as the
|
||||||
.BR PAGER .
|
.BR PAGER .
|
||||||
.TP
|
.TP
|
||||||
.BR e " or " q
|
.BR e " or " q
|
||||||
When the prompt --More--(Next file:
|
When the prompt --More--(Next file:
|
||||||
.IR file )
|
.IR file )
|
||||||
is printed, this command causes lzmore to exit.
|
is printed, this command causes lzmore to exit.
|
||||||
.TP
|
.TP
|
||||||
.B s
|
.B s
|
||||||
When the prompt --More--(Next file:
|
When the prompt --More--(Next file:
|
||||||
.IR file )
|
.IR file )
|
||||||
is printed, this command causes zmore to skip the next file and continue.
|
is printed, this command causes zmore to skip the next file and continue.
|
||||||
.PP
|
.PP
|
||||||
|
@ -41,7 +41,7 @@ For list of keyboard commands supported while actually viewing the
|
||||||
content of a file, refer to manual of the pager you use, usually
|
content of a file, refer to manual of the pager you use, usually
|
||||||
.BR more (1)
|
.BR more (1)
|
||||||
or
|
or
|
||||||
.BR less (1).
|
.BR less (1).
|
||||||
.SH AUTHORS
|
.SH AUTHORS
|
||||||
This manual page was ripped from
|
This manual page was ripped from
|
||||||
.BR zmore (1)
|
.BR zmore (1)
|
||||||
|
|
|
@ -111,7 +111,7 @@ do
|
||||||
# --subblock=size=8,rle=4 \
|
# --subblock=size=8,rle=4 \
|
||||||
# --subblock=size=8,rle=8 \
|
# --subblock=size=8,rle=8 \
|
||||||
# --subblock=size=4096,rle=12 \
|
# --subblock=size=4096,rle=12 \
|
||||||
#
|
#
|
||||||
for ARGS in \
|
for ARGS in \
|
||||||
--delta=dist=1 \
|
--delta=dist=1 \
|
||||||
--delta=dist=4 \
|
--delta=dist=4 \
|
||||||
|
@ -124,7 +124,7 @@ do
|
||||||
--sparc
|
--sparc
|
||||||
do
|
do
|
||||||
test_xz $ARGS --lzma2=dict=64KiB,nice=32,mode=fast
|
test_xz $ARGS --lzma2=dict=64KiB,nice=32,mode=fast
|
||||||
|
|
||||||
# Disabled until Subblock format is stable.
|
# Disabled until Subblock format is stable.
|
||||||
# test_xz --subblock $ARGS --lzma2=dict=64KiB,nice=32,mode=fast
|
# test_xz --subblock $ARGS --lzma2=dict=64KiB,nice=32,mode=fast
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue