source: npl/overig/archivetools/pax/pax-3.3-bzip2.patch @ 0105685

gcc484ntopperl-5.22
Last change on this file since 0105685 was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
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  
    3939.Sh SYNOPSIS
    4040.Nm cpio
    4141.Fl o
    42 .Op Fl aABcLMvzZ
     42.Op Fl aABcjLMvzZ
    4343.Op Fl C Ar bytes
    4444.Op Fl F Ar archive
    4545.Op Fl H Ar format
     
    4848.Op Ar "> archive"
    4949.Nm cpio
    5050.Fl i
    51 .Op Fl bBcdfmrsStuvzZ6
     51.Op Fl bBcdfjmrsStuvzZ6
    5252.Op Fl C Ar bytes
    5353.Op Fl E Ar file
    5454.Op Fl F Ar archive
     
    115115.It Ar ustar
    116116POSIX ustar format.
    117117.El
     118.It Fl j
     119Compress or decompress archive using
     120.Xr bzip2 1
     121format.
    118122.It Fl L
    119123Follow symbolic links.
    120124.It Fl M
     
    123127Be verbose about operations.
    124128List filenames as they are written to the archive.
    125129.It Fl z
    126 Compress archive using
     130Compress or decompress archive using
    127131.Xr gzip 1
    128132format.
    129133.It Fl Z
  • src/options.c

    diff -Nur pax-3.3-modifyWarn/src/options.c pax-3.3-bzip2/src/options.c
    old new  
    9292
    9393#define GZIP_CMD        "gzip"          /* command to run as gzip */
    9494#define COMPRESS_CMD    "compress"      /* command to run as compress */
     95#define BZIP2_CMD       "bzip2"         /* command to run as bzip2 */
    9596
    9697/*
    9798 *      Format specific routine table - MUST BE IN SORTED ORDER BY NAME
     
    199200         * process option flags
    200201         */
    201202        while ((c=getopt(argc,argv,
    202           "ab:cdf:iklno:p:rs:tuvwx:zB:DE:G:HLMPT:U:XYZ")) != -1) {
     203          "ab:cdf:ijklno:p:rs:tuvwx:zB:DE:G:HLMPT:U:XYZ")) != -1) {
    203204                switch (c) {
    204205                case 'a':
    205206                        /*
     
    245246                        iflag = 1;
    246247                        flg |= IF;
    247248                        break;
     249                case 'j':
     250                        /*
     251                         * use bzip2.  Non standard option.
     252                         */
     253                        gzip_program = BZIP2_CMD;
     254                        break;
    248255                case 'k':
    249256                        /*
    250257                         * do not clobber files that exist
     
    621628         * process option flags
    622629         */
    623630        while ((c = getoldopt(argc, argv,
    624             "b:cef:hmopqruts:vwxzBC:HI:LMOPXZ014578")) != -1) {
     631            "b:cef:hjmopqruts:vwxzBC:HI:LMOPXZ014578")) != -1) {
    625632                switch(c) {
    626633                case 'b':
    627634                        /*
     
    666673                         */
    667674                        Lflag = 1;
    668675                        break;
     676                case 'j':
     677                        /*
     678                         * use bzip2.  Non standard option.
     679                         */
     680                        gzip_program = BZIP2_CMD;
     681                        break;
    669682                case 'm':
    670683                        /*
    671684                         * do not preserve modification time
     
    10481061        nodirs = 1;
    10491062        listf = stderr;
    10501063        while ((c=getopt(argc,argv,
    1051           "abcdfiklmoprstuvzABC:E:F:H:I:LMO:SZ6")) != -1)
     1064          "abcdfijklmoprstuvzABC:E:F:H:I:LMO:SZ6")) != -1)
    10521065                switch (c) {
    10531066                        case 'a':
    10541067                                /*
     
    10851098                                 */
    10861099                                act = EXTRACT;
    10871100                                break;
     1101                        case 'j':
     1102                                /*
     1103                                 * use bzip2.  Non standard option.
     1104                                 */
     1105                                gzip_program = BZIP2_CMD;
     1106                                break;
    10881107                        case 'k':
    10891108                                break;
    10901109                        case 'l':
     
    15741593void
    15751594pax_usage(void)
    15761595{
    1577         (void)fputs("usage: pax [-cdnvzO] [-E limit] [-f archive] ", stderr);
     1596        (void)fputs("usage: pax [-cdjnvzO] [-E limit] [-f archive] ", stderr);
    15781597        (void)fputs("[-s replstr] ... [-U user] ...", stderr);
    15791598        (void)fputs("\n           [-G group] ... ", stderr);
    15801599        (void)fputs("[-T [from_date][,to_date]] ... ", stderr);
    15811600        (void)fputs("[pattern ...]\n", stderr);
    1582         (void)fputs("       pax -r [-cdiknuvzDOYZ] [-E limit] ", stderr);
     1601        (void)fputs("       pax -r [-cdijknuvzDOYZ] [-E limit] ", stderr);
    15831602        (void)fputs("[-f archive] [-o options] ... \n", stderr);
    15841603        (void)fputs("           [-p string] ... [-s replstr] ... ", stderr);
    15851604        (void)fputs("[-U user] ... [-G group] ...\n           ", stderr);
    15861605        (void)fputs("[-T [from_date][,to_date]] ... ", stderr);
    15871606        (void)fputs(" [pattern ...]\n", stderr);
    1588         (void)fputs("       pax -w [-dituvzHLMOPX] [-b blocksize] ", stderr);
     1607        (void)fputs("       pax -w [-dijtuvzHLMOPX] [-b blocksize] ", stderr);
    15891608        (void)fputs("[ [-a] [-f archive] ] [-x format] \n", stderr);
    15901609        (void)fputs("           [-B bytes] [-s replstr] ... ", stderr);
    15911610        (void)fputs("[-o options] ... [-U user] ...", stderr);
     
    16081627void
    16091628tar_usage(void)
    16101629{
    1611         (void)fputs("usage: tar [-]{crtux}[-befhmopqsvwzHLMOPXZ014578] [blocksize] ",
     1630        (void)fputs("usage: tar [-]{crtux}[-befhjmopqsvwzHLMOPXZ014578] [blocksize] ",
    16121631                 stderr);
    16131632        (void)fputs("[archive] [replstr] [-C directory] [-I file] [file ...]\n",
    16141633            stderr);
     
    16231642void
    16241643cpio_usage(void)
    16251644{
    1626         (void)fputs("usage: cpio -o [-aABcLMvVzZ] [-C bytes] [-H format] [-O archive]\n", stderr);
     1645        (void)fputs("usage: cpio -o [-aABcjLMvVzZ] [-C bytes] [-H format] [-O archive]\n", stderr);
    16271646        (void)fputs("               [-F archive] < name-list [> archive]\n", stderr);
    1628         (void)fputs("       cpio -i [-bBcdfmnrsStuvVzZ6] [-C bytes] [-E file] [-H format]\n", stderr);
     1647        (void)fputs("       cpio -i [-bBcdfjmnrsStuvVzZ6] [-C bytes] [-E file] [-H format]\n", stderr);
    16291648        (void)fputs("               [-I archive] [-F archive] [pattern...] [< archive]\n", stderr);
    16301649        (void)fputs("       cpio -p [-adlLmMuvV] destination-directory < name-list\n", stderr);
    16311650        exit(1);
  • src/pax.1

    diff -Nur pax-3.3-modifyWarn/src/pax.1 pax-3.3-bzip2/src/pax.1
    old new  
    4646.Nd read and write file archives and copy directory hierarchies
    4747.Sh SYNOPSIS
    4848.Nm pax
    49 .Op Fl cdnvz
     49.Op Fl cdjnvz
    5050.Bk -words
    5151.Op Fl f Ar archive
    5252.Ek
     
    7373.Op Ar pattern ...
    7474.Nm pax
    7575.Fl r
    76 .Op Fl cdiknuvzDYZ
     76.Op Fl cdijknuvzDYZ
    7777.Bk -words
    7878.Op Fl f Ar archive
    7979.Ek
     
    109109.Op Ar pattern ...
    110110.Nm pax
    111111.Fl w
    112 .Op Fl dituvzHLMPX
     112.Op Fl dijtuvzHLMPX
    113113.Bk -words
    114114.Op Fl b Ar blocksize
    115115.Ek
     
    467467is encountered when reading a response or if
    468468.Pa /dev/tty
    469469cannot be opened for reading and writing.
     470.It Fl j
     471Use
     472.Xr bzip2 1
     473to compress (decompress) the archive while writing (reading).
     474Incompatible with
     475.Fl a .
    470476.It Fl k
    471477Do not overwrite existing files.
    472478.It Fl l
     
    11741180.St -p1003.2
    11751181standard.
    11761182The options
     1183.Fl j ,
    11771184.Fl B ,
    11781185.Fl D ,
    11791186.Fl E ,
  • src/tar.1

    diff -Nur pax-3.3-modifyWarn/src/tar.1 pax-3.3-bzip2/src/tar.1
    old new  
    3939.Sh SYNOPSIS
    4040.Nm tar
    4141.Sm off
    42 .Oo \&- Oc {crtux} Op befhmopqsvwzHLMOPXZ014578
     42.Oo \&- Oc {crtux} Op befhjmopqsvwzHLMOPXZ014578
    4343.Sm on
    4444.Op Ar blocksize
    4545.Op Ar archive
     
    111111In extract mode this means that a directory entry in the archive
    112112will not overwrite an existing symbolic link, but rather what the
    113113link ultimately points to.
     114.It Fl j
     115Compress or decompress archive using
     116.Xr bzip2 1
     117format.
    114118.It Fl m
    115119Do not preserve modification time.
    116120.It Fl O
     
    194198to prompt the user for the filename to use when storing or
    195199extracting files in an archive.
    196200.It Fl z
    197 Compress archive using gzip.
     201Compress or decompress archive using
     202.Xr gzip 1
     203format.
    198204.It Fl C Ar directory
    199205This is a positional argument which sets the working directory for the
    200206following files.
     
    333339.At v7 .
    334340.Sh CAVEATS
    335341The
     342.Fl j ,
    336343.Fl L
    337344and
    338345.Fl M
Note: See TracBrowser for help on using the repository browser.