Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Feb 2014 01:05:29 +0000 (UTC)
From:      Jason Helfman <jgh@FreeBSD.org>
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
Message-ID:  <201402080105.s1815Ttt006388@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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</programlisting>
 	<programlisting>post-install:
 	  ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/xdl</programlisting>
 
-	<para>Use the &man.file.1; command on the installed executable
-	  to check whether the binary is stripped or not.  If it does
-	  not say <literal>not stripped</literal>, it is stripped.
-	  Additionally, &man.strip.1; will not strip a previously
-	  stripped program; it will instead exit cleanly.</para>
+	<para>When multiple files need to be stripped:</para>
+
+	<programlisting>post-install:
+	  .for l in geometry media body track world
+	  ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}-${l}.so.0
+	  .endfor</programlisting>
+
+	<para>Use &man.file.1; on a file to determine if it has been
+	  stripped.  Binaries are reported by &man.file.1; as
+	  <literal>stripped</literal>, or
+	  <literal>not stripped</literal>.  Additionally, &man.strip.1;
+	  will detect programs that have already been stripped and
+	  exit cleanly.</para>
       </sect2>
 
       <sect2 xml:id="install-copytree">



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402080105.s1815Ttt006388>