* ar.c (full_pathname): New static variable.

(map_over_members): Call normalize on command line parameter.
	(usage): Mention P modifier.
	(normalize): If full_pathname is true, don't do anything.
	(main): Accept P modifier.
	* binutils.texi, ar.1: Document P modifier.
This commit is contained in:
Ian Lance Taylor
1999-09-12 17:34:19 +00:00
parent 71add73133
commit fe84ea5db2
4 changed files with 45 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
.\" Copyright (c) 1991 Free Software Foundation
.\" Copyright (c) 1991, 1992, 1993, 1995, 1998, 1999 Free Software Foundation
.\" See section COPYING for conditions for redistribution
.TH ar 1 "5 November 1991" "cygnus support" "GNU Development Tools"
.TH ar 1 "1999" "Cygnus Solutions" "GNU Development Tools"
.de BP
.sp
.ti \-.2i
@@ -384,6 +384,18 @@ program on some systems. If this is a concern, the
modifier may be used to truncate file names when putting them in the
archive.
.TP
.B P
Use the full path name when matching names in the archive.
.B ar
can not create an archive with a full path name (such archives are not
POSIX complaint), but other archive creators can. This option will
cause
.B ar
to match file names using a complete path name, which can be
convenient when extracting a single file from an archive created by
another tool.
.TP
.B i
Insert new files \c
@@ -491,7 +503,7 @@ The GNU Binary Utilities\c
\&.
.SH COPYING
Copyright (c) 1991 Free Software Foundation, Inc.
Copyright (c) 1991, 1992, 1993, 1995, 1998, 1999 Free Software Foundation, Inc.
.PP
Permission is granted to make and distribute verbatim copies of
this manual provided the copyright notice and this permission notice