llvm-project/llvm/test/tools/llvm-ar
Jordan Rupprecht 4a6b9f2316 [llvm-ar] Support N [count] modifier
Summary:
GNU ar supports the 'N' count modifier for the extract (x) and delete (d) operations. When an archive contains multiple members with the same name, this can be used to extract (or delete) them individually. For example:

```
$ llvm-ar t archive.a
foo
foo
$ llvm-ar x archive.a
-> Writes foo twice, overwriting it the second time :( :(
$ llvm-ar xN 1 archive.a foo && mv foo foo.1
$ llvm-ar xN 2 archive.a foo && mv foo foo.2
-> Write foo twice, renaming it in between invocations to preserve all versions
```

Reviewers: ruiu, MaskRay

Reviewed By: ruiu, MaskRay

Subscribers: jdoerfert, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D59503

llvm-svn: 356466
2019-03-19 16:09:54 +00:00
..
Inputs [llvm-ar] Flatten thin archives. 2019-01-14 21:11:46 +00:00
absolute-paths.test [llvm-ar] Implement the P modifier. 2019-02-14 18:35:13 +00:00
add-library.test [llvm-ar] Access ADDLIB in llvm-ar via command line 2018-10-26 13:34:38 +00:00
case-detection.test
coff-weak.yaml
count.test [llvm-ar] Support N [count] modifier 2019-03-19 16:09:54 +00:00
default-add.test
default-coff.test
default-elf.test
default-macho.test
empty-uid-gid.test [llvm-ar] Use POSIX-specified timestamps for 'tv'. 2018-10-05 23:25:39 +00:00
flatten-thin-archive-directories.test [llvm-ar][libObject] Fix relative paths when nesting thin archives. 2019-02-13 23:39:41 +00:00
flatten-thin-archive-recursive.test [llvm-ar] Resubmit recursive thin archive test with fix for full path names and better error messages 2019-01-15 21:52:31 +00:00
flatten-thin-archive.test [llvm-ar][libObject] Fix relative paths when nesting thin archives. 2019-02-13 23:39:41 +00:00
full-path-option.test [llvm-ar] Implement the P modifier. 2019-02-14 18:35:13 +00:00
invalid-command-line.test [llvm-ar] Fix help text test. NFC. 2018-08-02 12:27:01 +00:00
mri-delete.test [llvm-ar] Support * as comment char in MRI scripts 2018-09-06 18:10:45 +00:00
override.test
print-thin-archive-path.test [llvm-ar] Remove leading slash when printing thin archive members 2019-02-06 21:50:45 +00:00
regex-cmd.test