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