svn commit: r47464 - head/en_US.ISO8859-1/books/porters-handbook/plist

Mathieu Arnold <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
Author: mat
Date: Thu Oct  1 14:34:08 2015
New Revision: 47464
URL: https://svnweb.freebsd.org/changeset/doc/47464

Log:
  Add "arguments" to the list of available directives for keywords files,
  introduced in pkg 1.6.
  
  Reviewed by:	brd, wblock
  Sponsored by:	Absolight
  Differential Revision:	https://reviews.freebsd.org/D3755

Modified:
  head/en_US.ISO8859-1/books/porters-handbook/plist/chapter.xml

Modified: head/en_US.ISO8859-1/books/porters-handbook/plist/chapter.xml
==============================================================================
--- head/en_US.ISO8859-1/books/porters-handbook/plist/chapter.xml	Thu Oct  1 14:34:02 2015	(r47463)
+++ head/en_US.ISO8859-1/books/porters-handbook/plist/chapter.xml	Thu Oct  1 14:34:08 2015	(r47464)
@@ -794,6 +794,33 @@ etc/orbit.conf-dist
 	  </listitem>
 	</varlistentry>
 
+	<varlistentry xml:id="plist-keywords-arguments">
+	  <term><literal>arguments</literal></term>
+
+	  <listitem>
+	    <para>If set to <literal>true</literal>, adds argument
+	      handling, splitting the whole line, <literal>%@</literal>,
+	      into numbered arguments, <literal>%1</literal>,
+	      <literal>%2</literal>, and so on.  For example, for this
+	      line:</para>
+
+	    <programlisting>@foo some.content other.content</programlisting>
+
+	    <para><literal>%1</literal> and <literal>%2</literal>
+	      will contain:</para>
+
+	    <programlisting>some.content
+other.content</programlisting>
+
+	    <para>It also affects how the <link
+		linkend="plist-keywords-action"><literal>action</literal></link>
+	      entry works.  When there is more than one argument, the
+	      argument number must be specified.  For example:</para>
+
+	    <programlisting>actions: [file(1)]</programlisting>
+	  </listitem>
+	</varlistentry>
+
 	<varlistentry xml:id="plist-keywords-pre-post">
 	  <term><literal>pre-install</literal></term>
 	  <term><literal>post-install</literal></term>
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-doc-all
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.