source:
npl/overig/archivetools/pax/pax-3.3-bzip2.patch
@
c5c522c
Last change on this file since c5c522c was c5c522c, checked in by , 8 years ago | |
---|---|
|
|
File size: 6.9 KB |
-
src/cpio.1
diff -Nur pax-3.3-modifyWarn/src/cpio.1 pax-3.3-bzip2/src/cpio.1
old new 39 39 .Sh SYNOPSIS 40 40 .Nm cpio 41 41 .Fl o 42 .Op Fl aABc LMvzZ42 .Op Fl aABcjLMvzZ 43 43 .Op Fl C Ar bytes 44 44 .Op Fl F Ar archive 45 45 .Op Fl H Ar format … … 48 48 .Op Ar "> archive" 49 49 .Nm cpio 50 50 .Fl i 51 .Op Fl bBcdf mrsStuvzZ651 .Op Fl bBcdfjmrsStuvzZ6 52 52 .Op Fl C Ar bytes 53 53 .Op Fl E Ar file 54 54 .Op Fl F Ar archive … … 115 115 .It Ar ustar 116 116 POSIX ustar format. 117 117 .El 118 .It Fl j 119 Compress or decompress archive using 120 .Xr bzip2 1 121 format. 118 122 .It Fl L 119 123 Follow symbolic links. 120 124 .It Fl M … … 123 127 Be verbose about operations. 124 128 List filenames as they are written to the archive. 125 129 .It Fl z 126 Compress archive using130 Compress or decompress archive using 127 131 .Xr gzip 1 128 132 format. 129 133 .It Fl Z -
src/options.c
diff -Nur pax-3.3-modifyWarn/src/options.c pax-3.3-bzip2/src/options.c
old new 92 92 93 93 #define GZIP_CMD "gzip" /* command to run as gzip */ 94 94 #define COMPRESS_CMD "compress" /* command to run as compress */ 95 #define BZIP2_CMD "bzip2" /* command to run as bzip2 */ 95 96 96 97 /* 97 98 * Format specific routine table - MUST BE IN SORTED ORDER BY NAME … … 199 200 * process option flags 200 201 */ 201 202 while ((c=getopt(argc,argv, 202 "ab:cdf:i klno:p:rs:tuvwx:zB:DE:G:HLMPT:U:XYZ")) != -1) {203 "ab:cdf:ijklno:p:rs:tuvwx:zB:DE:G:HLMPT:U:XYZ")) != -1) { 203 204 switch (c) { 204 205 case 'a': 205 206 /* … … 245 246 iflag = 1; 246 247 flg |= IF; 247 248 break; 249 case 'j': 250 /* 251 * use bzip2. Non standard option. 252 */ 253 gzip_program = BZIP2_CMD; 254 break; 248 255 case 'k': 249 256 /* 250 257 * do not clobber files that exist … … 621 628 * process option flags 622 629 */ 623 630 while ((c = getoldopt(argc, argv, 624 "b:cef:h mopqruts:vwxzBC:HI:LMOPXZ014578")) != -1) {631 "b:cef:hjmopqruts:vwxzBC:HI:LMOPXZ014578")) != -1) { 625 632 switch(c) { 626 633 case 'b': 627 634 /* … … 666 673 */ 667 674 Lflag = 1; 668 675 break; 676 case 'j': 677 /* 678 * use bzip2. Non standard option. 679 */ 680 gzip_program = BZIP2_CMD; 681 break; 669 682 case 'm': 670 683 /* 671 684 * do not preserve modification time … … 1048 1061 nodirs = 1; 1049 1062 listf = stderr; 1050 1063 while ((c=getopt(argc,argv, 1051 "abcdfi klmoprstuvzABC:E:F:H:I:LMO:SZ6")) != -1)1064 "abcdfijklmoprstuvzABC:E:F:H:I:LMO:SZ6")) != -1) 1052 1065 switch (c) { 1053 1066 case 'a': 1054 1067 /* … … 1085 1098 */ 1086 1099 act = EXTRACT; 1087 1100 break; 1101 case 'j': 1102 /* 1103 * use bzip2. Non standard option. 1104 */ 1105 gzip_program = BZIP2_CMD; 1106 break; 1088 1107 case 'k': 1089 1108 break; 1090 1109 case 'l': … … 1574 1593 void 1575 1594 pax_usage(void) 1576 1595 { 1577 (void)fputs("usage: pax [-cd nvzO] [-E limit] [-f archive] ", stderr);1596 (void)fputs("usage: pax [-cdjnvzO] [-E limit] [-f archive] ", stderr); 1578 1597 (void)fputs("[-s replstr] ... [-U user] ...", stderr); 1579 1598 (void)fputs("\n [-G group] ... ", stderr); 1580 1599 (void)fputs("[-T [from_date][,to_date]] ... ", stderr); 1581 1600 (void)fputs("[pattern ...]\n", stderr); 1582 (void)fputs(" pax -r [-cdi knuvzDOYZ] [-E limit] ", stderr);1601 (void)fputs(" pax -r [-cdijknuvzDOYZ] [-E limit] ", stderr); 1583 1602 (void)fputs("[-f archive] [-o options] ... \n", stderr); 1584 1603 (void)fputs(" [-p string] ... [-s replstr] ... ", stderr); 1585 1604 (void)fputs("[-U user] ... [-G group] ...\n ", stderr); 1586 1605 (void)fputs("[-T [from_date][,to_date]] ... ", stderr); 1587 1606 (void)fputs(" [pattern ...]\n", stderr); 1588 (void)fputs(" pax -w [-di tuvzHLMOPX] [-b blocksize] ", stderr);1607 (void)fputs(" pax -w [-dijtuvzHLMOPX] [-b blocksize] ", stderr); 1589 1608 (void)fputs("[ [-a] [-f archive] ] [-x format] \n", stderr); 1590 1609 (void)fputs(" [-B bytes] [-s replstr] ... ", stderr); 1591 1610 (void)fputs("[-o options] ... [-U user] ...", stderr); … … 1608 1627 void 1609 1628 tar_usage(void) 1610 1629 { 1611 (void)fputs("usage: tar [-]{crtux}[-befh mopqsvwzHLMOPXZ014578] [blocksize] ",1630 (void)fputs("usage: tar [-]{crtux}[-befhjmopqsvwzHLMOPXZ014578] [blocksize] ", 1612 1631 stderr); 1613 1632 (void)fputs("[archive] [replstr] [-C directory] [-I file] [file ...]\n", 1614 1633 stderr); … … 1623 1642 void 1624 1643 cpio_usage(void) 1625 1644 { 1626 (void)fputs("usage: cpio -o [-aABc LMvVzZ] [-C bytes] [-H format] [-O archive]\n", stderr);1645 (void)fputs("usage: cpio -o [-aABcjLMvVzZ] [-C bytes] [-H format] [-O archive]\n", stderr); 1627 1646 (void)fputs(" [-F archive] < name-list [> archive]\n", stderr); 1628 (void)fputs(" cpio -i [-bBcdf mnrsStuvVzZ6] [-C bytes] [-E file] [-H format]\n", stderr);1647 (void)fputs(" cpio -i [-bBcdfjmnrsStuvVzZ6] [-C bytes] [-E file] [-H format]\n", stderr); 1629 1648 (void)fputs(" [-I archive] [-F archive] [pattern...] [< archive]\n", stderr); 1630 1649 (void)fputs(" cpio -p [-adlLmMuvV] destination-directory < name-list\n", stderr); 1631 1650 exit(1); -
src/pax.1
diff -Nur pax-3.3-modifyWarn/src/pax.1 pax-3.3-bzip2/src/pax.1
old new 46 46 .Nd read and write file archives and copy directory hierarchies 47 47 .Sh SYNOPSIS 48 48 .Nm pax 49 .Op Fl cd nvz49 .Op Fl cdjnvz 50 50 .Bk -words 51 51 .Op Fl f Ar archive 52 52 .Ek … … 73 73 .Op Ar pattern ... 74 74 .Nm pax 75 75 .Fl r 76 .Op Fl cdi knuvzDYZ76 .Op Fl cdijknuvzDYZ 77 77 .Bk -words 78 78 .Op Fl f Ar archive 79 79 .Ek … … 109 109 .Op Ar pattern ... 110 110 .Nm pax 111 111 .Fl w 112 .Op Fl di tuvzHLMPX112 .Op Fl dijtuvzHLMPX 113 113 .Bk -words 114 114 .Op Fl b Ar blocksize 115 115 .Ek … … 467 467 is encountered when reading a response or if 468 468 .Pa /dev/tty 469 469 cannot be opened for reading and writing. 470 .It Fl j 471 Use 472 .Xr bzip2 1 473 to compress (decompress) the archive while writing (reading). 474 Incompatible with 475 .Fl a . 470 476 .It Fl k 471 477 Do not overwrite existing files. 472 478 .It Fl l … … 1174 1180 .St -p1003.2 1175 1181 standard. 1176 1182 The options 1183 .Fl j , 1177 1184 .Fl B , 1178 1185 .Fl D , 1179 1186 .Fl E , -
src/tar.1
diff -Nur pax-3.3-modifyWarn/src/tar.1 pax-3.3-bzip2/src/tar.1
old new 39 39 .Sh SYNOPSIS 40 40 .Nm tar 41 41 .Sm off 42 .Oo \&- Oc {crtux} Op befh mopqsvwzHLMOPXZ01457842 .Oo \&- Oc {crtux} Op befhjmopqsvwzHLMOPXZ014578 43 43 .Sm on 44 44 .Op Ar blocksize 45 45 .Op Ar archive … … 111 111 In extract mode this means that a directory entry in the archive 112 112 will not overwrite an existing symbolic link, but rather what the 113 113 link ultimately points to. 114 .It Fl j 115 Compress or decompress archive using 116 .Xr bzip2 1 117 format. 114 118 .It Fl m 115 119 Do not preserve modification time. 116 120 .It Fl O … … 194 198 to prompt the user for the filename to use when storing or 195 199 extracting files in an archive. 196 200 .It Fl z 197 Compress archive using gzip. 201 Compress or decompress archive using 202 .Xr gzip 1 203 format. 198 204 .It Fl C Ar directory 199 205 This is a positional argument which sets the working directory for the 200 206 following files. … … 333 339 .At v7 . 334 340 .Sh CAVEATS 335 341 The 342 .Fl j , 336 343 .Fl L 337 344 and 338 345 .Fl M
Note: See TracBrowser
for help on using the repository browser.