Enhance the USES=shebangfix section now that the old command is an array

and not a single entry.

Sponsored by:	Absolight
This commit is contained in:
Mathieu Arnold 2015-10-22 14:50:05 +00:00
parent 02f98a9e3e
commit d24133769a
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=47639

View file

@ -1147,16 +1147,30 @@ GSSAPI_NONE_CONFIGURE_ON= --without-gssapi</programlisting>
scripts listed in <varname>SHEBANG_FILES</varname>. Currently
<application>Bash</application>,
<application>Java</application>, <application>Ksh</application>,
<application>Lua</application>,
<application>Perl</application>, <application>PHP</application>,
<application>Python</application>,
<application>Ruby</application>, <application>Tcl</application>,
and <application>Tk</application> are supported by default. To
support another interpreter, set
<varname>SHEBANG_LANG</varname>, <varname>lua_OLD_CMD</varname>
and <varname>lua_CMD</varname>. For example
<literal>SHEBANG_LANG=lua</literal>, then
<varname>lua_OLD_CMD=/usr/bin/lua</varname> and
<varname>lua_CMD=${LOCALBASE}/bin/lua</varname>.</para>
<varname>SHEBANG_LANG</varname>,
<varname><replaceable>foo</replaceable>_OLD_CMD</varname> and
<varname><replaceable>foo</replaceable>_CMD</varname>. For
example:</para>
<programlisting>SHEBANG_LANG= lua
lua_OLD_CMD= /usr/bin/lua
lua_CMD= ${LOCALBASE}/bin/lua</programlisting>
<para>As <literal><replaceable>foo</replaceable>_OLD_CMD</literal>
can contain multiple values, if an entry contains a space, it
needs to be quoted. For example, if it was not already defined,
the <application>Ksh</application> entry could be defined
as:</para>
<programlisting>SHEBANG_LANG= ksh
ksh_OLD_CMD= "/usr/bin/env ksh" /bin/ksh /usr/bin/ksh
ksh_CMD= ${LOCALBASE}/bin/ksh</programlisting>
</sect1>
<sect1 xml:id="uses-tar">