source:
patches/tar-1.22-new_compressors-1.patch@
4ed1f86
Last change on this file since 4ed1f86 was 2bfaabe, checked in by , 16 years ago | |
---|---|
|
|
File size: 2.4 KB |
-
src/buffer.c
Submitted By: Jim Gifford <jim at cross-lfs dot org> Date: 2009-03-05 Initial Package Version: 1.22 Upstream Status: Unknown Origin: Jim Gifford Description: For using lzip compression diff -Naur tar-1.22.orig/src/buffer.c tar-1.22/src/buffer.c
old new 203 203 ct_compress, 204 204 ct_gzip, 205 205 ct_bzip2, 206 ct_lzip, 206 207 ct_lzma, 207 208 ct_lzop, 208 209 ct_xz … … 221 222 { ct_tar }, 222 223 { ct_none, }, 223 224 { ct_compress, 2, "\037\235", "compress", "-Z" }, 224 { ct_gzip, 2, "\037\213", "gzip", "-z" }, 225 { ct_bzip2, 3, "BZh", "bzip2", "-j" }, 226 { ct_lzma, 6, "\xFFLZMA", "lzma", "--lzma" }, /* FIXME: ???? */ 227 { ct_lzop, 4, "\211LZO", "lzop", "--lzop" }, 225 { ct_gzip, 2, "\037\213", "gzip", "-z" }, 226 { ct_bzip2, 3, "BZh", "bzip2", "-j" }, 227 { ct_lzip, 4, "LZIP", "lzip", "--lzip" }, 228 { ct_lzma, 6, "\xFFLZMA", "lzma", "--lzma" }, /* FIXME: ???? */ 229 { ct_lzop, 4, "\211LZO", "lzop", "--lzop" }, 228 230 { ct_xz, 6, "\0xFD7zXZ", "-J" }, 229 231 }; 230 232 -
src/tar.c
diff -Naur tar-1.22.orig/src/tar.c tar-1.22/src/tar.c
old new 271 271 IGNORE_FAILED_READ_OPTION, 272 272 INDEX_FILE_OPTION, 273 273 KEEP_NEWER_FILES_OPTION, 274 LZIP_OPTION, 274 275 LZMA_OPTION, 275 276 LZOP_OPTION, 276 277 MODE_OPTION, … … 328 329 VERSION_OPTION, 329 330 VOLNO_FILE_OPTION, 330 331 WILDCARDS_MATCH_SLASH_OPTION, 331 WILDCARDS_OPTION 332 WILDCARDS_OPTION, 333 XZ_OPTION 332 334 }; 333 335 334 336 const char *argp_program_version = "tar (" PACKAGE_NAME ") " VERSION; … … 605 607 {"compress", 'Z', 0, 0, 606 608 N_("filter the archive through compress"), GRID+1 }, 607 609 {"uncompress", 0, 0, OPTION_ALIAS, NULL, GRID+1 }, 610 {"lzip", LZIP_OPTION, 0, 0, 611 N_("filter the archive through lzip"), GRID+8 }, 608 612 {"lzma", LZMA_OPTION, 0, 0, 609 613 N_("filter the archive through lzma"), GRID+1 }, 610 614 {"lzop", LZOP_OPTION, 0, 0, … … 1404 1408 } 1405 1409 break; 1406 1410 1411 case LZIP_OPTION: 1412 set_use_compress_program_option ("lzip"); 1413 break; 1414 1407 1415 case LZMA_OPTION: 1408 1416 set_use_compress_program_option ("lzma"); 1409 1417 break; … … 1561 1569 } 1562 1570 break; 1563 1571 1572 case XZ_OPTION: 1573 set_use_compress_program_option ("xz"); 1574 break; 1575 1564 1576 case 'z': 1565 1577 set_use_compress_program_option ("gzip"); 1566 1578 break;
Note:
See TracBrowser
for help on using the repository browser.