Date: Sun, 28 Nov 2010 18:53:57 +0000 (UTC) From: Kai Wang <kaiw@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r216014 - head/usr.bin/ar Message-ID: <201011281853.oASIrvTn038978@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kaiw Date: Sun Nov 28 18:53:57 2010 New Revision: 216014 URL: http://svn.freebsd.org/changeset/base/216014 Log: Add option -D for ranlib(1). When -D is speicified, ranlib(1) will generate a deterministic archive symbol table (i.e. timestamp for the symbol table member header is set to 0). Submitted by: Erik Cederstrand Modified: head/usr.bin/ar/ar.1 head/usr.bin/ar/ar.c Modified: head/usr.bin/ar/ar.1 ============================================================================== --- head/usr.bin/ar/ar.1 Sun Nov 28 18:53:29 2010 (r216013) +++ head/usr.bin/ar/ar.1 Sun Nov 28 18:53:57 2010 (r216014) @@ -92,6 +92,7 @@ .Ar archive .Op Ar files ... .Nm ranlib +.Op Fl D .Ar archive ... .Sh DESCRIPTION The Modified: head/usr.bin/ar/ar.c ============================================================================== --- head/usr.bin/ar/ar.c Sun Nov 28 18:53:29 2010 (r216013) +++ head/usr.bin/ar/ar.c Sun Nov 28 18:53:57 2010 (r216014) @@ -113,12 +113,15 @@ main(int argc, char **argv) len = strlen(bsdar->progname); if (len >= strlen("ranlib") && strcmp(bsdar->progname + len - strlen("ranlib"), "ranlib") == 0) { - while ((opt = getopt_long(argc, argv, "tV", longopts, + while ((opt = getopt_long(argc, argv, "tDV", longopts, NULL)) != -1) { switch(opt) { case 't': /* Ignored. */ break; + case 'D': + bsdar->options |= AR_D; + break; case 'V': ranlib_version(); break;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011281853.oASIrvTn038978>