Research V3 development
[unix-history] / man / man1 / ar.1
CommitLineData
a0e1f54c
KT
1.pa 1
2.he 'AR (I)'3/15/72'AR (I)'
3.ti 0
4NAME ar -- archive
5.sp
6.ti 0
7SYNOPSIS ar\b\b__ key afile name\e91\e8 ...
8.sp
9.ti 0
10DESCRIPTION ar\b\b__
11maintains groups of files
12combined into a single archive file.
13Its main use
14is to create and update library files as used by the loader.
15It can be used, though, for any similar purpose.
16.sp
17key\b\b\b___ is one character from the set drtux\b\b\b\b\b_____,
18optionally concatenated with v\b_.
19afile\b\b\b\b\b_____ is the archive file.
20The names\b\b\b\b\b_____ are constituent files in the archive file.
21The meanings of the key\b\b\b___ characters are:
22.sp
23d\b_ means delete the named files from the archive file.
24.sp
25r\b_ means replace the named files in the archive file.
26If the archive file does not exist, r\b_ will create it.
27If the named files are not in the archive file, they are appended.
28.sp
29t\b_ prints a table of contents of the archive file.
30If no names are given, all files in the archive are tabled.
31If names are given, only those files are tabled.
32.sp
33u\b_ is similar to r\b_ except that only those
34files that have been modified are replaced.
35If no names are given, all files in the archive that
36have been modified will be replaced by the modified version.
37.sp
38x\b_ will extract the named files.
39If no names are given, all files in the archive are
40extracted.
41In neither case does x\b_ alter the archive file.
42.sp
43v\b_ means verbose.
44Under the verbose option,
45ar\b\b__ gives a file-by-file
46description of the making of a
47new archive file from the old archive and the constituent files.
48The following abbreviations
49are used:
50.sp
51 c\b_ copy
52 a\b_ append
53 d\b_ delete
54 r\b_ replace
55 x\b_ extract
56.sp
57.ti 0
58FILES /tmp/vtm? temporary
59.sp
60.ti 0
61SEE ALSO ld(I), archive(V)
62.sp
63.ti 0
64DIAGNOSTICS "Bad usage",
65"afile -- not in archive format",
66"cannot open temp file",
67"name -- cannot open",
68"name -- phase error",
69"name -- cannot create",
70"no archive file",
71"cannot create archive file",
72"name -- not found".
73.sp
74.ti 0
75BUGS Option
76vt\b\b__ should be implemented as a table with more information.
77.sp
78There should be a way to specify the placement
79of a new file in an archive.
80Currently, it is placed at the end.
81
82"ar x" changes the modified-date of the current
83directory to a random number.