Changeset a569125 in freewrt for tools/paxmirabilis/src/tar.1


Ignore:
Timestamp:
Feb 16, 2012, 10:14:16 PM (14 years ago)
Author:
Thorsten Glaser <tg@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
7417b08
Parents:
3784d08
Message:

even FreeWRT 1.0-stable deserves paxmirabilis-20120216 compiled with LTO ☺

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@3981 afb5a338-a214-0410-bd46-81f09a774fd1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/paxmirabilis/src/tar.1

    r3784d08 ra569125  
    1 .\"     $MirOS: src/bin/pax/tar.1,v 1.11 2009/10/27 18:47:27 tg Exp $
    2 .\"     $OpenBSD: tar.1,v 1.48 2007/05/31 19:19:15 jmc Exp $
    3 .\"
     1.\"     $MirOS: src/bin/pax/tar.1,v 1.22 2012/02/12 02:49:41 tg Exp $
     2.\"     $OpenBSD: tar.1,v 1.55 2010/12/02 04:08:27 tedu Exp $
     3.\"
     4.\" Copyright (c) 2005, 2008, 2009, 2011, 2012
     5.\"     Thorsten Glaser <tg@mirbsd.org>
    46.\" Copyright (c) 1996 SigmaSoft, Th. Lockert
    57.\" All rights reserved.
     
    2426.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
    2527.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    26 .\"
    27 .\"     $OpenBSD: tar.1,v 1.48 2007/05/31 19:19:15 jmc Exp $
    28 .\"
    2928.\"-
    3029.\" Try to make GNU groff and AT&T nroff more compatible
    31 .\" * ` generates ‘ in groff, so use \`
    32 .\" * ' generates ’ in groff, \' generates ´, so use \*(aq
    33 .\" * - generates ‐ in groff, \- generates −, fixed in tmac/mdoc/doc-groff
     30.\" * ` generates ‘ in gnroff, so use \`
     31.\" * ' generates ’ in gnroff, \' generates ´, so use \*(aq
     32.\" * - generates ‐ in gnroff, \- generates −, so .tr it to -
    3433.\"   thus use - for hyphens and \- for minus signs and option dashes
    3534.\" * ~ is size-reduced and placed atop in groff, so use \*(TI
    3635.\" * ^ is size-reduced and placed atop in groff, so use \*(ha
    3736.\" * \(en does not work in nroff, so use \*(en
     37.\" The section after the "doc" macropackage has been loaded contains
     38.\" additional code to convene between the UCB mdoc macropackage (and
     39.\" its variant as BSD mdoc in groff) and the GNU mdoc macropackage.
     40.\"
    3841.ie \n(.g \{\
     42.       if \*[.T]ascii .tr \-\N'45'
     43.       if \*[.T]latin1 .tr \-\N'45'
     44.       if \*[.T]utf8 .tr \-\N'45'
     45.       ds <= \[<=]
     46.       ds >= \[>=]
     47.       ds Rq \[rq]
     48.       ds Lq \[lq]
     49.       ds sL \(aq
     50.       ds sR \(aq
     51.       if \*[.T]utf8 .ds sL `
     52.       if \*[.T]ps .ds sL `
     53.       if \*[.T]utf8 .ds sR '
     54.       if \*[.T]ps .ds sR '
    3955.       ds aq \(aq
    4056.       ds TI \(ti
     
    5066.\"
    5167.\" Implement .Dd with the Mdocdate RCS keyword
     68.\"
    5269.rn Dd xD
    5370.de Dd
     
    6178.\" with -mandoc, it might implement .Mx itself, but we want to
    6279.\" use our own definition. And .Dd must come *first*, always.
    63 .Dd $Mdocdate: October 27 2009 $
     80.\"
     81.Dd $Mdocdate: February 12 2012 $
     82.\"
     83.\" Check which macro package we use
     84.\"
     85.ie \n(.g \{\
     86.       ie d volume-ds-1 .ds tT gnu
     87.       el .ds tT bsd
     88.\}
     89.el .ds tT ucb
    6490.\"
    6591.\" Implement .Mx (MirBSD)
    66 .de Mx
    67 .nr cF \\n(.f
    68 .nr cZ \\n(.s
    69 .ds aa \&\f\\n(cF\s\\n(cZ
    70 .if \\n(aC==0 \{\
    71 .       ie \\n(.$==0 \&MirOS\\*(aa
    72 .       el .aV \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9
    73 .\}
    74 .if \\n(aC>\\n(aP \{\
    75 .       nr aP \\n(aP+1
    76 .       ie \\n(C\\n(aP==2 \{\
    77 .               as b1 \&MirOS\ #\&\\*(A\\n(aP\\*(aa
    78 .               ie \\n(aC>\\n(aP \{\
    79 .                       nr aP \\n(aP+1
     92.\"
     93.ie "\*(tT"gnu" \{\
     94.       eo
     95.       de Mx
     96.       nr curr-font \n[.f]
     97.       nr curr-size \n[.ps]
     98.       ds str-Mx \f[\n[curr-font]]\s[\n[curr-size]u]
     99.       ds str-Mx1 \*[Tn-font-size]\%MirOS\*[str-Mx]
     100.       if !\n[arg-limit] \
     101.       if \n[.$] \{\
     102.       ds macro-name Mx
     103.       parse-args \$@
     104.       \}
     105.       if (\n[arg-limit] > \n[arg-ptr]) \{\
     106.       nr arg-ptr +1
     107.       ie (\n[type\n[arg-ptr]] == 2) \
     108.       as str-Mx1 \~\*[arg\n[arg-ptr]]
     109.       el \
     110.       nr arg-ptr -1
     111.       \}
     112.       ds arg\n[arg-ptr] "\*[str-Mx1]
     113.       nr type\n[arg-ptr] 2
     114.       ds space\n[arg-ptr] "\*[space]
     115.       nr num-args (\n[arg-limit] - \n[arg-ptr])
     116.       nr arg-limit \n[arg-ptr]
     117.       if \n[num-args] \
     118.       parse-space-vector
     119.       print-recursive
     120..
     121.       ec
     122.       ds sP \s0
     123.       ds tN \*[Tn-font-size]
     124.\}
     125.el \{\
     126.       de Mx
     127.       nr cF \\n(.f
     128.       nr cZ \\n(.s
     129.       ds aa \&\f\\n(cF\s\\n(cZ
     130.       if \\n(aC==0 \{\
     131.               ie \\n(.$==0 \&MirOS\\*(aa
     132.               el .aV \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9
     133.       \}
     134.       if \\n(aC>\\n(aP \{\
     135.               nr aP \\n(aP+1
     136.               ie \\n(C\\n(aP==2 \{\
     137.                       as b1 \&MirOS\ #\&\\*(A\\n(aP\\*(aa
     138.                       ie \\n(aC>\\n(aP \{\
     139.                               nr aP \\n(aP+1
     140.                               nR
     141.                       \}
     142.                       el .aZ
     143.               \}
     144.               el \{\
     145.                       as b1 \&MirOS\\*(aa
    80146.                       nR
    81147.               \}
    82 .               el .aZ
    83148.       \}
    84 .       el \{\
    85 .               as b1 \&MirOS\\*(aa
    86 .               nR
    87 .       \}
    88 .\}
    89149..
    90 .Dt TAR 1
     150.\}
     151.\"-
     152.ie \ng==1 \{\
     153.       ds nc mircpio
     154.       ds np mirpax
     155.       ds nt mirtar
     156.       ds nm mirtar
     157.       Dt MIRTAR 1
     158.\}
     159.el .ie \ng==2 \{\
     160.       ds nc paxcpio
     161.       ds np pax
     162.       ds nt paxtar
     163.       ds nm paxtar
     164.       Dt PAXTAR 1
     165.\}
     166.el \{\
     167.       ds nc cpio
     168.       ds np pax
     169.       ds nt tar
     170.       ds nm tar
     171.       Dt TAR 1
     172.\}
     173.\"-
    91174.Os MirBSD
    92175.Sh NAME
     176.ie \ng==1 \{\
     177.Nm mirtar
     178.Nd tape archiver
     179.\}
     180.el .ie \ng==2 \{\
     181.Nm paxtar
     182.Nd tape archiver
     183.\}
     184.el \{\
    93185.Nm tar
    94186.Nd tape archiver
     187.\}
    95188.Sh SYNOPSIS
    96 .Nm tar
     189.Nm \*(nm
    97190.Sm off
    98 .No { Cm crtux No } Op Cm 014578befHhLmOoPRSpqsvwXZz
     191.No { Cm crtux No } Op Cm 014578AbefHhJjLmNOoPRSpqsvwXZz
    99192.Sm on
    100193.Bk -words
     
    102195.Op Fl C Ar directory
    103196.Op Fl I Ar file
    104 .Op Ar file ...
     197.Op Ar
    105198.Ek
    106 .Pp
    107 .Nm tar
     199.Nm \*(nm
    108200.No { Ns Fl crtux Ns }
    109 .Op Fl 014578eHhLmOoPpqRSvwXZz
     201.Bk -words
     202.Op Fl 014578AeHhJjLmNOoPpqRSvwXZz
    110203.Op Fl b Ar blocking-factor
    111204.Op Fl C Ar directory
     
    114207.Op Fl M Ar flag
    115208.Op Fl s Ar replstr
    116 .Op Ar file ...
     209.Op Ar
     210.Ek
    117211.Sh DESCRIPTION
    118212The
     
    132226.Nm
    133227and must not be prefixed by a hyphen
    134 .Pq Sq - .
     228.Pq Sq \- .
    135229Option arguments, if any, are processed as subsequent arguments to
    136230.Nm
     
    190284flags may be used:
    191285.Bl -tag -width Ds
     286.It Fl A
     287Write Unix Archiver libraries instead of tape archives.
    192288.It Fl b Ar blocking-factor
    193289Set blocking factor to use for the archive.
     
    221317This is a positional argument which reads the names of files to
    222318archive or extract from the given file, one per line.
     319.It Fl J
     320Use the xz utility to compress the archive.
     321.It Fl j
     322Use the bzip2 utility to compress the archive.
    223323.It Fl L
    224324Synonym for the
     
    228328Configure the archive normaliser.
    229329.Ar flag
    230 is either a number or a string, optionally prefixed with
    231 .Dq no-
    232 to turn it off.
    233 See
    234 .Xr cpio 1
    235 for a comprehensive list and compatibility notes.
     330is either a numeric value compatible to
     331.Xr strtonum 3
     332which is directly stored in the flags word, or
     333one of the following values, optionally prefixed with
     334.Dq no\-
     335to turn them off:
    236336.Pp
    237337.Bl -tag -width xxxxxx -compact
    238338.It Ar inodes
    2393390x0001: Serialise inodes, zero device info.
     340.br
     341(cpio, sv4cpio, sv4crc)
    240342.It Ar links
    2413430x0002: Store content of hard links only once.
     344.br
     345(cpio, sv4cpio, sv4crc)
    242346.It Ar mtime
    2433470x0004: Zero out the file modification time.
     348.br
     349(ar, cpio, sv4cpio, sv4crc, ustar)
    244350.It Ar uidgid
    2453510x0008: Set owner to 0:0 (root:wheel).
     352.br
     353(ar, cpio, sv4cpio, sv4crc, ustar)
     354.It Ar verb
     3550x0010: Debug this option.
     356.It Ar debug
     3570x0020: Debug file header storage.
    246358.It Ar lncp
    247 0x0040: Extract hard links by copying if linking fails.
     3590x0040: Extract hard links by copy if link fails.
     360.It Ar numid
     3610x0080: Use only numeric uid and gid values.
     362.br
     363(ustar)
     364.It Ar gslash
     3650x0100: Append a slash after directory names.
     366.br
     367(ustar)
     368.It Ar set
     3690x0003: Keep ownership and mtime intact.
     370.It Ar dist
     3710x008B: Clean everything except mtime.
     372.It Ar norm
     3730x008F: Clean everything.
     374.It Ar root
     3750x0089: Clean owner and device information.
    248376.El
    249377.Pp
    250 This option is only implemented for the cpio, sv4cpio,
     378This option is only implemented for the ar, cpio, sv4cpio,
    251379sv4crc, and ustar file format writing routines.
    252 For the ustar format, the
    253 .Ar inodes
    254 and
    255 .Ar links
    256 specifiers are ignored.
    257380.It Fl m
    258381Do not preserve modification time.
     382.It Fl N
     383Same as
     384.Fl M Ar numid .
    259385.It Fl O
    260386If reading, extract files to standard output.
     
    263389.It Fl o
    264390Don't write directory information that the older (V7) style
    265 .Nm
     391.Nm tar
    266392is unable to decode.
    267393This implies the
     
    353479standard error in the following format:
    354480.Pp
    355 .D1 Em original-pathname No >> Em new-pathname
     481.D1 Em original-pathname No \*(Gt\*(Gt Em new-pathname
    356482.Pp
    357483File or archive member names that substitute to the empty string
     
    368494Do not cross mount points in the file system.
    369495.It Fl Z
    370 Compress archive using
    371 .Xr compress 1 .
     496Use the
     497.Xr compress 1
     498utility to compress the archive.
    372499.It Fl z
    373 Compress archive using
    374 .Xr gzip 1 .
     500Use the
     501.Xr gzip 1
     502utility to compress the archive.
    375503.El
    376504.Pp
     
    392520default archive name
    393521.El
     522.Sh EXIT STATUS
     523The
     524.Nm
     525utility exits with one of the following values:
     526.Pp
     527.Bl -tag -width Ds -offset indent -compact
     528.It 0
     529All files were processed successfully.
     530.It 1
     531An error occurred.
     532.El
    394533.Sh EXAMPLES
    395534Create an archive on the default tape drive, containing the files named
     
    398537.Pa sekve :
    399538.Pp
    400 .Dl $ tar c bonvole sekve
     539.Dl $ \*(nm c bonvole sekve
    401540.Pp
    402541Output a
     
    409548.Pa foriru.tar.gz :
    410549.Pp
    411 .Dl $ tar zcf foriru.tar.gz bonvole sekve
     550.Dl $ \*(nm zcf foriru.tar.gz bonvole sekve
    412551.Pp
    413552Verbosely create an archive, called
     
    418557.Pa *.c :
    419558.Pp
    420 .Dl $ tar zcvf backup.tar.gz *.c
     559.Dl $ \*(nm zcvf backup.tar.gz *.c
    421560.Pp
    422561Verbosely list, but do not extract, all files ending in
     
    426565Note that the glob pattern has been quoted to avoid expansion by the shell:
    427566.Pp
    428 .Dl $ tar tvzf backup.tar.gz '*.jpeg'
     567.Dl $ \*(nm tvzf backup.tar.gz \*(aq*.jpeg\*(aq
    429568.Pp
    430569For more detailed examples, see
    431 .Xr pax 1 .
     570.Xr \*(np 1 .
    432571.Sh DIAGNOSTICS
    433 .Nm
    434 will exit with one of the following values:
    435 .Bl -tag -width 2n -offset indent
    436 .It 0
    437 All files were processed successfully.
    438 .It 1
    439 An error occurred.
    440 .El
    441 .Pp
    442572Whenever
    443573.Nm
     
    472602specific archive format specification.
    473603.Sh SEE ALSO
     604.Xr ar 1 ,
    474605.Xr cpio 1 ,
     606.ie \ng==1 \{\
     607.Xr mircpio 1 ,
     608.Xr mirpax 1 ,
     609.Xr pax 1 ,
     610.Xr tar 1 ,
     611.Xr deb 5
     612.\}
     613.el .ie \ng==2 \{\
     614.Xr pax 1 ,
     615.Xr paxcpio 1 ,
     616.Xr tar 1 ,
     617.Xr deb 5
     618.\}
     619.el \{\
    475620.Xr pax 1
     621.\}
    476622.Sh HISTORY
    477623A
    478 .Nm
     624.Nm tar
    479625command first appeared in
    480626.At v7 .
    481627.Sh AUTHORS
    482628Keith Muller at the University of California, San Diego.
     629.Pp
     630.Mx
     631extensions by
     632.An Thorsten Glaser Aq tg@mirbsd.org .
    483633.Sh CAVEATS
    484 The
    485 .Fl L
    486 flag is not portable to other versions of
    487 .Nm
    488 where it may have a different meaning.
    489 The
    490 .Fl R ,
    491 .Fl S ,
    492 and
    493 .Fl M
    494 options are extensions specific to
    495 .Mx .
     634The flags
     635.Fl AJjLMNRS
     636are not portable to other implementations of
     637.Nm tar
     638where they may have a different meaning.
Note: See TracChangeset for help on using the changeset viewer.