Commit | Line | Data |
---|---|---|
efdd6d01 C |
1 | .TH AR 1 |
2 | .UC 4 | |
3 | .SH NAME | |
4 | ar \- archive and library maintainer | |
5 | .SH SYNOPSIS | |
6 | .B ar | |
7 | key [ posname ] afile name ... | |
8 | .SH DESCRIPTION | |
9 | .I Ar | |
10 | maintains groups of files | |
11 | combined into a single archive file. | |
12 | Its main use | |
13 | is to create and update library files as used by the loader. | |
14 | It can be used, though, for any similar purpose. | |
15 | .B N.B: | |
16 | This version of | |
17 | .I ar | |
18 | uses a ASCII-format archive which is portable among the various | |
19 | machines running \s-2UNIX\s0. | |
20 | Programs for dealing with older formats are available: see | |
21 | .IR old (8). | |
22 | .PP | |
23 | .I Key | |
24 | is one character from the set | |
25 | .B drqtpmx, | |
26 | optionally concatenated with | |
27 | one or more of | |
28 | .B vuaibcl. | |
29 | .I Afile | |
30 | is the archive file. | |
31 | The | |
32 | .I names | |
33 | are constituent files in the archive file. | |
34 | The meanings of the | |
35 | .I key | |
36 | characters are: | |
37 | .TP | |
38 | .B d | |
39 | Delete the named files from the archive file. | |
40 | .TP | |
41 | .B r | |
42 | Replace the named files in the archive file. | |
43 | If the optional character | |
44 | .B u | |
45 | is used with | |
46 | .B r, | |
47 | then only those files with | |
48 | modified dates later than | |
49 | the archive files are replaced. | |
50 | If an optional positioning character from the set | |
51 | .B abi | |
52 | is used, then the | |
53 | .I posname | |
54 | argument must be present | |
55 | and specifies that new files are to be placed | |
56 | after | |
57 | .RB ( a ) | |
58 | or before | |
59 | .RB ( b | |
60 | or | |
61 | .BR i ) | |
62 | .IR posname . | |
63 | Otherwise | |
64 | new files are placed at the end. | |
65 | .TP | |
66 | .B q | |
67 | Quickly append the named files to the end of the archive file. | |
68 | Optional positioning characters are invalid. | |
69 | The command does not check whether the added members | |
70 | are already in the archive. | |
71 | Useful only to avoid quadratic behavior when creating a large | |
72 | archive piece-by-piece. | |
73 | .TP | |
74 | .B t | |
75 | Print a table of contents of the archive file. | |
76 | If no names are given, all files in the archive are tabled. | |
77 | If names are given, only those files are tabled. | |
78 | .TP | |
79 | .B p | |
80 | Print the named files in the archive. | |
81 | .TP | |
82 | .B m | |
83 | Move the named files to the end of the archive. | |
84 | If a positioning character is present, | |
85 | then the | |
86 | .I posname | |
87 | argument must be present and, | |
88 | as in | |
89 | .B r, | |
90 | specifies where the files are to be moved. | |
91 | .TP | |
92 | .B x | |
93 | Extract the named files. | |
94 | If no names are given, all files in the archive are | |
95 | extracted. | |
96 | In neither case does | |
97 | .B x | |
98 | alter the archive file. | |
99 | .TP | |
100 | .B v | |
101 | Verbose. | |
102 | Under the verbose option, | |
103 | .I ar | |
104 | gives a file-by-file | |
105 | description of the making of a | |
106 | new archive file from the old archive and the constituent files. | |
107 | When used with | |
108 | .B t, | |
109 | it gives a long listing of all information about the files. | |
110 | When used with | |
111 | .BR p , | |
112 | it precedes each file with a name. | |
113 | .TP | |
114 | .B c | |
115 | Create. | |
116 | Normally | |
117 | .I ar | |
118 | will create | |
119 | .I afile | |
120 | when it needs to. | |
121 | The create option suppresses the | |
122 | normal message that is produced when | |
123 | .I afile | |
124 | is created. | |
125 | .TP | |
126 | .B l | |
127 | Local. | |
128 | Normally | |
129 | .I ar | |
130 | places its temporary files in the directory /tmp. | |
131 | This option causes them to be placed in the local directory. | |
132 | .SH FILES | |
133 | /tmp/v* temporaries | |
134 | .SH "SEE ALSO" | |
135 | lorder(1), ld(1), ranlib(1), ar(5), arcv(8), old(8) | |
136 | .SH BUGS | |
137 | If the same file is mentioned twice in an argument list, | |
138 | it may be put in the archive twice. |