Blame Documentation/Models/Docbook/Tcar-ug/Scripts/Bash/render.docbook

ed015e
<refentry id="scripts-bash-render">
0ace69
ed015e
    <refmeta>
ed015e
        <refentrytitle>render</refentrytitle>
ed015e
        <indexterm type="specific-function">
ed015e
            <primary>Standardize rendition tasks inside &TCAR;</primary>
ed015e
        </indexterm>
ed015e
    </refmeta>
0ace69
ed015e
    <refnamediv>
ed015e
        <refname>render</refname>
ed015e
        <refpurpose>Standardize rendition tasks inside &TCAR;</refpurpose>
ed015e
    </refnamediv>
0ace69
ed015e
    <refsynopsisdiv>
0ace69
0ace69
    <para>
0ace69
        The <varname>DIRECTORY</varname> parameter specifies the
0ace69
        directory path, inside the working copy of &TCAR;, where the
0ace69
        files you want to process are stored in.  This paramter can be
0ace69
        provided more than once in order to process more than one
0ace69
        directory path in a single command execution.  When this
0ace69
        parameter is not provided, the current directory path where
0ace69
        the command was called from is used instead.
0ace69
    </para>
ed015e
    </refsynopsisdiv>
6104cf
ed015e
    <refsection id="scripts-bash-render-description">
ed015e
    <title>Description</title>
6104cf
0ace69
    <para>
ed015e
        Inside the working copy of &TCAR;, rendition tasks take place
ed015e
        inside renderable directories. The rendition itself is
ed015e
        performed through a serie of rendition flows named
ed015e
        base-rendition, post-rendition, last-rendition and
ed015e
        directory-specific rendition.
0ace69
    </para>
0ace69
0ace69
    <para>
ed015e
        Renderable directories are convenctional locations inside the
ed015e
        working copy where you can find source files, output files and
ed015e
        auxiliar files. Source files are used to produce output files.
ed015e
        Auxiliar files are used to modify the way output files are
ed015e
        produced from source files (e.g., to produce localized
ed015e
        output). Auxiliar files are optionals.
ed015e
    </para>
ed015e
    <para>
ed015e
        Renderable directories are made of several directories but
ed015e
        only the output dirctory path is passed to
ed015e
        <function>render</function> functionality as
ed015e
        <varname>DIRECTORY</varname> parameter in the command-line.
ed015e
        The directories related to source and auxiliar files are
ed015e
        automatically constructed based on a directory organization
ed015e
        convenction. This way, the <function>render</function>
ed015e
        functionality collects all the information it needs to work
ed015e
        with.
ed015e
    </para>
ed015e
ed015e
    <para>
ed015e
        Inside the working copy, renderable directories are divided in
ed015e
        two categories in a way differences between them can be
ed015e
        preserved. These categories are named <quote>direct
ed015e
        production</quote> and <quote>theme production</quote>. These
ed015e
        categories provide the file organization convenction the
ed015e
        <function>render</function> functionality needs, to produce
ed015e
        content based on rendition flows.
ed015e
    </para>
ed015e
ed015e
    <para>Direct Production </para>
ed015e
    <para>Theme Production</para>
ed015e
    <para>Base Rendition Flow</para>
ed015e
    <para>Post Rendition Flow</para>
ed015e
    <para>Last Rendition Flow</para>
ed015e
    <para>Directory-Specific Rendition Flow</para>
ed015e
    </refsection>
ed015e
ed015e
    <refsection id="scripts-bash-render-environment">
ed015e
    <title>Function Specific Environment</title>
ed015e
    <para>
ed015e
        ...
ed015e
    </para>
ed015e
    </refsection>
ed015e
ed015e
    <refsection id="scripts-bash-render-usage">
ed015e
    <title>Usage</title>
ed015e
    <para>
ed015e
        ...
ed015e
    </para>
ed015e
    </refsection>
ed015e
ed015e
    <refsection id="scripts-bash-render-option">
ed015e
    <title>Options</title>
ed015e
ed015e
    <para>
ed015e
        The <command>centos-art prepare</command> command accepts
ed015e
        common options described in 
ed015e
        linkend="scripts-bash-cli-commonoptions" /> and the following
ed015e
        specific options:
0ace69
    </para>
ed015e
ed015e
    <variablelist>
0ace69
0ace69
    <varlistentry>
0ace69
    <term><option>--answer-yes</option></term>
0ace69
    <listitem>
0ace69
    <para>
0ace69
       Assume <emphasis>yes</emphasis> to all confirmation requests.
0ace69
    </para>
0ace69
    </listitem>
0ace69
    </varlistentry>
0ace69
0ace69
    <varlistentry>
0ace69
    <term><option>--filter="REGEX"</option></term>
0ace69
    <listitem>
0ace69
    <para>
0ace69
        This option reduces the list of files to process inside
0ace69
        <varname>DIRECTORY</varname> using <varname>REGEX</varname> as
0ace69
        pattern.  You can use this option to control the amount of
0ace69
        files you want to render.  The deeper you go into the
0ace69
        directory structure the more specific you'll be about the
0ace69
        files you want to render.  When you cannot go deeper into the
0ace69
        directory structure through <varname>DIRECTORY</varname>
0ace69
        specification, use this option to reduce the list of files
0ace69
        therein.
0ace69
    </para>
0ace69
    </listitem>
0ace69
    </varlistentry>
0ace69
0ace69
    <varlistentry>
464f9a
    <term><option>--sync-changes</option></term>
0ace69
    <listitem>
0ace69
    <para>
464f9a
        Synchronizes available changes between the working copy and
464f9a
        the central repository.
0ace69
    </para>
0ace69
    </listitem>
0ace69
    </varlistentry>
0ace69
0ace69
    <varlistentry>
0ace69
    <term><option>--releasever="NUMBER"</option></term>
0ace69
    <listitem>
0ace69
    <para>
0ace69
        This option expands the =\RELEASE=,
0ace69
        =\MAJOR_RELEASE=, and
0ace69
        =\MINOR_RELEASE= translation makers based on
0ace69
        <varname>NUMBER</varname> value.  Notice that translation
0ace69
        markers here were escaped using a backslash (\)
0ace69
        in order to prevent their expansion. Use this option when you
0ace69
        need to produce release-specific contents, but no release
0ace69
        information can be retrived from the directory path you are
0ace69
        currently rendering.
0ace69
    </para>
0ace69
    </listitem>
0ace69
    </varlistentry>
0ace69
0ace69
    <varlistentry>
0ace69
    <term><option>--basearch="ARCH"</option></term>
0ace69
    <listitem>
0ace69
    <para>
0ace69
        This option expands the =\ARCHITECTURE=,
0ace69
        translation makers based on <varname>ARHC</varname> value.
0ace69
        Notice that translation markers here were escaped using a
0ace69
        backslash (\) in order to prevent their
0ace69
        expansion. Use this option when you need to produce
0ace69
        architecture-sepecific contents but no architecture
0ace69
        information can be retrived from the directory path you are
0ace69
        currently rendering.
0ace69
    </para>
0ace69
    </listitem>
0ace69
    </varlistentry>
0ace69
0ace69
    <varlistentry>
0ace69
    <term><option>--theme-model="NAME"</option></term>
0ace69
    <listitem>
0ace69
    <para>
0ace69
        This option specifies the name of theme model you want to use
0ace69
        when producing theme artistic motifs. By default, if this
0ace69
        option is not provided, the <literal>Default</literal> theme
0ace69
        model is used as reference to produce theme artistic motifs.
0ace69
        To know what values does the <varname>NAME</varname> variable
0ace69
        can have, run <command>ls
0ace69
        ~/artwork/trunk/Identity/Models/Themes</command> command.
0ace69
    </para>
0ace69
    </listitem>
0ace69
    </varlistentry>
0ace69
0ace69
    <varlistentry>
0ace69
    <term><option>--post-rendition="COMMAND"</option></term>
0ace69
    <listitem>
0ace69
    <para>
0ace69
        This option lets you apply a command as post-rendition action.
0ace69
        In this case, the <varname>COMMAND</varname> represents the
0ace69
        command-line you want to execute in order to perform in-place
0ace69
        modifications to base-rendition output.
0ace69
    </para>
0ace69
    </listitem>
0ace69
    </varlistentry>
0ace69
0ace69
    <varlistentry>
0ace69
    <term><option>--last-rendition="COMMAND"</option></term>
0ace69
    <listitem>
0ace69
    <para>
0ace69
        This option lets you apply a command as last-rendition action.
0ace69
        In this case, the <varname>COMMAND</varname> argument
0ace69
        represents the command string you want to execute in order to
0ace69
        perform in-place modifications to base-rendition,
0ace69
        post-rendition and directory-specific rendition outputs. 
0ace69
    </para>
0ace69
    </listitem>
0ace69
    </varlistentry>
0ace69
    </variablelist>
ed015e
    </refsection>
6104cf
ed015e
    <refsection id="scripts-bash-render-authors">
6104cf
    <title>Authors</title>
6104cf
    <para>
6104cf
        The following people have worked in the
6104cf
        <function>render</function> functionality:
6104cf
    </para>
6104cf
    <itemizedlist>
6104cf
    <listitem>
6104cf
    <para>
515dd1
        Alain Reguera Delgado <<ulink url="mailto:alain.reguera@gmail.com">alain.reguera@gmail.com</ulink>>, =COPYRIGHT_YEAR_LIST=
6104cf
    </para>
6104cf
    </listitem>
6104cf
    </itemizedlist>
ed015e
    </refsection>
6104cf
ed015e
    <refsection id="scripts-bash-render-licence">
6104cf
    <title>License</title>
515dd1
6104cf
    <para>
515dd1
        Copyright © =COPYRIGHT_YEAR_LIST= The CentOS Project
515dd1
    </para>
6104cf
 
515dd1
    <para>
515dd1
        This program is free software; you can redistribute it and/or
515dd1
        modify it under the terms of the GNU General Public License as
515dd1
        published by the Free Software Foundation; either version 2 of
515dd1
        the License, or (at your option) any later version.
515dd1
    </para>
6104cf
 
515dd1
    <para>
515dd1
        This program is distributed in the hope that it will be
515dd1
        useful, but WITHOUT ANY WARRANTY; without even the implied
515dd1
        warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
515dd1
        PURPOSE.  See the GNU General Public License for more details.
515dd1
    </para>
6104cf
 
515dd1
    <para>
515dd1
        You should have received a copy of the GNU General Public
515dd1
        License along with this program; if not, write to the Free
515dd1
        Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
515dd1
        USA.
6104cf
    </para>
ed015e
    </refsection>
0ace69
ed015e
</refentry>