| |||
| Home > armar command reference > -r | |||
Replaces, or adds, files in the library. If the library does
not exist, a new library file is created and a diagnostic message
is written to standard error. -q is an alias for -r.
If is
not specified and the library exists, the results are undefined.
Files that replace existing files do not change the order of the
library. file_list
If the -u option is used, then only those
files with dates of modification later than the library files are
replaced.
If the -a, -b, or -i option
is used, then must
be present and specifies that new files are to be placed after (pos_name-a)
or before (-b or -i) .
Otherwise the new files are placed at the end.pos_name
To add or replace obj1.o, obj2.o,
and obj3.o files in a library, enter:
armar -r mylib.a obj1.o obj2.o obj3.o
To replace files in a library, and only if the file in the library is older than the specified file, enter:
armar -ru mylib.a k*.o