From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15784 invoked by alias); 29 Oct 2010 11:09:39 -0000 Received: (qmail 15772 invoked by uid 22791); 29 Oct 2010 11:09:37 -0000 X-SWARE-Spam-Status: No, hits=-5.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 29 Oct 2010 11:09:33 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o9TB9VsR004740 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 29 Oct 2010 07:09:31 -0400 Received: from Gift.redhat.com (vpn1-7-164.ams2.redhat.com [10.36.7.164]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id o9TB9Tap014034 for ; Fri, 29 Oct 2010 07:09:30 -0400 From: Nick Clifton To: binutils@sourceware.org Subject: PR/12058: Document the 's' command to ar Date: Fri, 29 Oct 2010 11:09:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2010-10/txt/msg00504.txt.bz2 Hi Guys, I have checked in the patch below in order to document the 's' command letter that is accepted by the ar command. Cheers Nick binutils/ChangeLog 2010-10-29 Nick Clifton PR binutils/12058 * ar.c (usage): Revert previous change. Describe how 's' can be used as a command letter. * doc/binutils.texi (ar cmdline): Describe how 's' can be used as a command letter. Index: binutils/ar.c =================================================================== RCS file: /cvs/src/src/binutils/ar.c,v retrieving revision 1.66 diff -u -3 -p -r1.66 ar.c --- binutils/ar.c 28 Oct 2010 14:11:29 -0000 1.66 +++ binutils/ar.c 29 Oct 2010 08:45:14 -0000 @@ -230,9 +230,9 @@ usage (int help) /* xgettext:c-format */ const char * command_line = #if BFD_SUPPORTS_PLUGINS - _("Usage: %s [emulation options] [--plugin ] [-]{dmpqrtx}[abcfilNoPsSuvV] [member-name] [count] archive-file file...\n"); + _("Usage: %s [emulation options] [--plugin ] [-]{dmpqrstx}[abcfilNoPsSuvV] [member-name] [count] archive-file file...\n"); #else - _("Usage: %s [emulation options] [-]{dmpqrtx}[abcfilNoPsSuvV] [member-name] [count] archive-file file...\n"); + _("Usage: %s [emulation options] [-]{dmpqrstx}[abcfilNoPsSuvV] [member-name] [count] archive-file file...\n"); #endif fprintf (s, command_line, program_name); @@ -244,6 +244,7 @@ usage (int help) fprintf (s, _(" p - print file(s) found in the archive\n")); fprintf (s, _(" q[f] - quick append file(s) to the archive\n")); fprintf (s, _(" r[ab][f][u] - replace existing or insert new file(s) into the archive\n")); + fprintf (s, _(" s - act as ranlib\n")); fprintf (s, _(" t - display contents of archive\n")); fprintf (s, _(" x[o] - extract file(s) from the archive\n")); fprintf (s, _(" command specific modifiers:\n")); Index: binutils/doc/binutils.texi =================================================================== RCS file: /cvs/src/src/binutils/doc/binutils.texi,v retrieving revision 1.171 diff -u -3 -p -r1.171 binutils.texi --- binutils/doc/binutils.texi 10 Sep 2010 12:11:27 -0000 1.171 +++ binutils/doc/binutils.texi 29 Oct 2010 08:45:16 -0000 @@ -345,6 +345,13 @@ output for each file inserted, along wit @samp{r} to indicate whether the file was appended (no old member deleted) or replaced. +@item s +@cindex ranlib +Add an index to the archive, or update it if it already exists. Note +this command is an exception to the rule that there can only be one +command letter, as it is possible to use it as either a command or a +modifier. In either case it does the same thing. + @item t @cindex contents of archive Display a @emph{table} listing the contents of @var{archive}, or those