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