From owner-svn-doc-head@FreeBSD.ORG Sat Feb 8 01:05:29 2014 Return-Path: Delivered-To: svn-doc-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5F890C84; Sat, 8 Feb 2014 01:05:29 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 48AFB1BCF; Sat, 8 Feb 2014 01:05:29 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s1815Twc006390; Sat, 8 Feb 2014 01:05:29 GMT (envelope-from jgh@svn.freebsd.org) Received: (from jgh@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s1815Ttt006388; Sat, 8 Feb 2014 01:05:29 GMT (envelope-from jgh@svn.freebsd.org) Message-Id: <201402080105.s1815Ttt006388@svn.freebsd.org> From: Jason Helfman Date: Sat, 8 Feb 2014 01:05:29 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r43827 - head/en_US.ISO8859-1/books/porters-handbook X-SVN-Group: doc-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the doc tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Feb 2014 01:05:29 -0000 Author: jgh Date: Sat Feb 8 01:05:28 2014 New Revision: 43827 URL: http://svnweb.freebsd.org/changeset/doc/43827 Log: - include example on how to strip multiple files PR: 186466 Submitted by: nemysis@ Approved by: wblock (mentor) Modified: head/en_US.ISO8859-1/books/porters-handbook/book.xml Modified: head/en_US.ISO8859-1/books/porters-handbook/book.xml ============================================================================== --- head/en_US.ISO8859-1/books/porters-handbook/book.xml Fri Feb 7 23:45:41 2014 (r43826) +++ head/en_US.ISO8859-1/books/porters-handbook/book.xml Sat Feb 8 01:05:28 2014 (r43827) @@ -5122,11 +5122,19 @@ PORTVERSION= 1.0 post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/xdl - Use the &man.file.1; command on the installed executable - to check whether the binary is stripped or not. If it does - not say not stripped, it is stripped. - Additionally, &man.strip.1; will not strip a previously - stripped program; it will instead exit cleanly. + When multiple files need to be stripped: + + post-install: + .for l in geometry media body track world + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}-${l}.so.0 + .endfor + + Use &man.file.1; on a file to determine if it has been + stripped. Binaries are reported by &man.file.1; as + stripped, or + not stripped. Additionally, &man.strip.1; + will detect programs that have already been stripped and + exit cleanly.