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
This commit is contained in:
Mathieu Arnold 2015-10-01 14:34:08 +00:00
parent 12c6dc066f
commit 85859125e5
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=47464

View file

@ -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>