|
|
453a90 |
@node Trunk Scripts
|
|
|
453a90 |
@section @file{trunk/Scripts}
|
|
|
453a90 |
@cindex Trunk scripts
|
|
|
453a90 |
|
|
|
b93983 |
The @file{trunk/Scripts} directory exists to organize automation
|
|
|
b93983 |
scripts related to @value{TCPCVI}. Such automation scripts are
|
|
|
b93983 |
implemented through @command{centos-art.sh} script, a bash scripts
|
|
|
b93983 |
designed to automate most frequent tasks performed inside the working
|
|
|
b93983 |
copy of @value{TCAR} (e.g., image rendition, content documentation,
|
|
|
b93983 |
content translation, etc.).
|
|
|
453a90 |
|
|
|
453a90 |
The @file{trunk/Scripts} directory and all files inside it are under
|
|
|
b93983 |
version control.
|
|
|
453a90 |
|
|
|
b93983 |
The @file{trunk/Scripts} directory contains just one file, the
|
|
|
b93983 |
@file{centos-art.sh} file. This file is the invocation script the
|
|
|
b93983 |
@command{centos-art} command calls to. In addition to
|
|
|
b93983 |
@file{centos-art.sh} file, the following directories are available:
|
|
|
453a90 |
|
|
|
453a90 |
@c -- <[centos-art(SeeAlso)
|
|
|
453a90 |
@itemize
|
|
|
7a15e4 |
@item @ref{Trunk Scripts Functions}
|
|
|
453a90 |
@end itemize
|
|
|
453a90 |
@c -- ]>
|
|
|
b93983 |
|
|
|
b93983 |
Content rendition inside @file{trunk/Scripts} is not supported.
|
|
|
b93983 |
|
|
|
b93983 |
Once the @command{centos-art.sh} script is executed, the following
|
|
|
b93983 |
variables are available all along the script execution:
|
|
|
b93983 |
|
|
|
b93983 |
@defvar CLI_PROGRAM
|
|
|
b93983 |
The @var{CLI_PROGRAM} variable is read-only and contains the name of
|
|
|
b93983 |
the script, which is @samp{centos-art}, without extension.
|
|
|
b93983 |
@end defvar
|
|
|
b93983 |
|
|
|
b93983 |
@defvar CLI_PROGRAM_ID
|
|
|
b93983 |
The @var{CLI_PROGRAM_ID} variable is read-only and contains the
|
|
|
b93983 |
process identification assigned to @command{centos-art.sh} script,
|
|
|
b93983 |
once executed.
|
|
|
b93983 |
@end defvar
|
|
|
b93983 |
|
|
|
b93983 |
@defvar CLI_VERSION
|
|
|
b93983 |
The @var{CLI_VERSION} variable is read-only and contains the version
|
|
|
b93983 |
number of @command{centos-art.sh} script.
|
|
|
b93983 |
@end defvar
|
|
|
b93983 |
|
|
|
b93983 |
@defvar CLI_BASEDIR
|
|
|
b93983 |
The @var{CLI_BASEDIR} variable is read-only and contains the absolute
|
|
|
b93983 |
path of directory where @command{centos-art.sh} script is stored in.
|
|
|
b93983 |
@end defvar
|
|
|
b93983 |
|
|
|
b93983 |
@defvar CLI_TEMPDIR
|
|
|
b93983 |
The @var{CLI_TEMPDIR} variable is read-only and contains the absolute
|
|
|
b93983 |
path of directory where temporal files created by
|
|
|
b93983 |
@command{centos-art.sh} script are stored in.
|
|
|
b93983 |
@end defvar
|
|
|
b93983 |
|
|
|
b93983 |
@defvar TEXTDOMAIN
|
|
|
b93983 |
The @var{TEXDOMAIN} variable is read-only and contains the name of the
|
|
|
b93983 |
program we are providing localization for (i.e., @samp{centos-art.sh}).
|
|
|
b93983 |
@end defvar
|
|
|
b93983 |
|
|
|
b93983 |
@defvar TEXTDOMAINDIR
|
|
|
b93983 |
The @var{TEXTDOMAINDIR} variable is read-only and contains the
|
|
|
b93983 |
absolute path of directory holding localization messages for
|
|
|
b93983 |
@command{centos-art.sh}. In order for this variable to take effect,
|
|
|
b93983 |
its value must be set using the
|
|
|
b93983 |
@file{$@{BASEDIR@}/$@{LANG@}/LC_MESSAGES/$@{TEXDOMAIN@}} construction;
|
|
|
b93983 |
where @var{BASEDIR} is an absolute path inside your workstation,
|
|
|
b93983 |
@var{LANG} a language code based on the standards @samp{ISO-639} and
|
|
|
b93983 |
@samp{ISO-3166} (e.g., @samp{es_ES} for Spanish from Spain,
|
|
|
b93983 |
@samp{fr_FR} for French from France, etc.).
|
|
|
b93983 |
@end defvar
|