Date: Mon, 18 Jun 2018 10:29:47 +0000 (UTC) From: Mathieu Arnold <mat@FreeBSD.org> To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r51873 - head/en_US.ISO8859-1/books/porters-handbook/order Message-ID: <201806181029.w5IATl3i049908@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mat Date: Mon Jun 18 10:29:47 2018 New Revision: 51873 URL: https://svnweb.freebsd.org/changeset/doc/51873 Log: Add a tip on how to sort targets when options helpers are used. Sponsored by: Absolight Modified: head/en_US.ISO8859-1/books/porters-handbook/order/chapter.xml Modified: head/en_US.ISO8859-1/books/porters-handbook/order/chapter.xml ============================================================================== --- head/en_US.ISO8859-1/books/porters-handbook/order/chapter.xml Mon Jun 18 10:23:04 2018 (r51872) +++ head/en_US.ISO8859-1/books/porters-handbook/order/chapter.xml Mon Jun 18 10:29:47 2018 (r51873) @@ -523,5 +523,26 @@ post-install-EXAMPLES-on: <para><varname>test</varname></para> </listitem> </itemizedlist> + + <tip> + <para>When using options helpers target keep them alphabetically + sorted, but keep the + <literal><replaceable>*</replaceable>-on</literal> before the + <literal><replaceable>*</replaceable>-off</literal>. When + also using the main target, keep the main target before the + optionnal ones:</para> + + <programlisting>post-install: + # install generic bits + +post-install-DOCS-on: + # Install documentation + +post-install-X11-on: + # Install X11 related bits + +post-install-X11-off: + # Install bits that should be there if X11 is disabled</programlisting> + </tip> </sect1> </chapter>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806181029.w5IATl3i049908>