Blame Artworks/Documentation/Repository/Texinfo/Tcar-fs/en_US/Scripts/functions-prepare.texinfo

Alain Reguera Delgado 5c0af5
@node Scripts Functions Prepare
Alain Reguera Delgado 5c0af5
@section @file{Scripts/Functions/Prepare}
Alain Reguera Delgado 5c0af5
@cindex Scripts functions prepare
Alain Reguera Delgado 5c0af5
Alain Reguera Delgado 5c0af5
The @file{Scripts/Functions/Prepare} directory exists to
Alain Reguera Delgado 5c0af5
organize the @code{prepare} functionality of @command{centos-art.sh}
Alain Reguera Delgado 5c0af5
script.  The @code{prepare} functionality is written in Bash and its
Alain Reguera Delgado 5c0af5
main goal is to standardize the final configuration stuff your
Alain Reguera Delgado 5c0af5
workstation needs, once the working copy of @value{TCAR} has been
Alain Reguera Delgado 5c0af5
downloaded inside it. 
Alain Reguera Delgado 5c0af5
Alain Reguera Delgado 5c0af5
The @file{Scripts/Functions/Prepare} directory and all files
Alain Reguera Delgado 5c0af5
inside it are under version control.
Alain Reguera Delgado 5c0af5
Alain Reguera Delgado 5c0af5
Content rendition inside @file{Scripts/Functions/Prepare} is not
Alain Reguera Delgado 5c0af5
supported. 
Alain Reguera Delgado 5c0af5
Alain Reguera Delgado 5c0af5
Inside @file{Scripts/Functions/Prepare} directory, file names
Alain Reguera Delgado 5c0af5
and function names share the same name convenction with the exception
Alain Reguera Delgado 5c0af5
that file names end with a @samp{.sh} suffix while function names
Alain Reguera Delgado 5c0af5
doesn't. Both, file names and function names, begin with
Alain Reguera Delgado 5c0af5
@samp{prepare_} prefix followed by a description of what the function
Alain Reguera Delgado 5c0af5
does.
Alain Reguera Delgado 5c0af5
Alain Reguera Delgado 5c0af5
Inside @file{Scripts/Functions/Prepare} directory, you can find
Alain Reguera Delgado 5c0af5
the following functions:
Alain Reguera Delgado 5c0af5
Alain Reguera Delgado 5c0af5
@defun prepare
Alain Reguera Delgado 5c0af5
The @code{prepare} (initialization) function creates the base
Alain Reguera Delgado 5c0af5
execution environment required to standardize final configuration
Alain Reguera Delgado 5c0af5
stuff needed by your workstation, once the working copy of
Alain Reguera Delgado 5c0af5
@value{TCAR} has been downloaded in it.
Alain Reguera Delgado 5c0af5
@end defun
Alain Reguera Delgado 5c0af5
Alain Reguera Delgado 5c0af5
@defun prepare_getOptions
Alain Reguera Delgado 5c0af5
The @code{prepare_getOptions} function parses command options provided
Alain Reguera Delgado 5c0af5
to @command{centos-art.sh} script when the first argument in the
Alain Reguera Delgado 5c0af5
command-line is the @samp{prepare} word. This function decides what
Alain Reguera Delgado 5c0af5
action to perform based on options provided. To parse options, this
Alain Reguera Delgado 5c0af5
function makes use of @command{getopt} program.
Alain Reguera Delgado 5c0af5
@end defun
Alain Reguera Delgado 5c0af5
Alain Reguera Delgado 5c0af5
@defun prepare_updateLinks
Alain Reguera Delgado 5c0af5
The @code{prepare_updateLinks} function updates the symbolic
Alain Reguera Delgado 5c0af5
link relation that connects your workstation with the files inside the
Alain Reguera Delgado 5c0af5
working copy of @value{TCAR}. This function makes brushes, palettes,
Alain Reguera Delgado 5c0af5
patterns and fonts inside the working copy available to programs like
Alain Reguera Delgado 5c0af5
GIMP and Inkscape installed in your workstation. 
Alain Reguera Delgado 5c0af5
@end defun
Alain Reguera Delgado 5c0af5
Alain Reguera Delgado 5c0af5
@defun prepare_updateImages
Alain Reguera Delgado 5c0af5
The @code{prepare_updateImages} function initializes image files
Alain Reguera Delgado 5c0af5
inside the working copy. This function makes a list of all design
Alain Reguera Delgado 5c0af5
models inside the working copy and renders them one by one to produces
Alain Reguera Delgado 5c0af5
the related output images.
Alain Reguera Delgado 5c0af5
@end defun
Alain Reguera Delgado 5c0af5
Alain Reguera Delgado 5c0af5
@defun prepare_updateManuals
Alain Reguera Delgado 5c0af5
The @code{prepare_updateManuals} function initializes
Alain Reguera Delgado 5c0af5
documentation files inside the working copy. This function makes a
Alain Reguera Delgado 5c0af5
list of all documentation manuals source files inside the working copy
Alain Reguera Delgado 5c0af5
and produces related output for them.
Alain Reguera Delgado 5c0af5
@end defun
Alain Reguera Delgado 5c0af5
Alain Reguera Delgado 5c0af5
@defun prepare_updatePackages
Alain Reguera Delgado 5c0af5
The @code{prepare_updatePackages} function verifies the required
Alain Reguera Delgado 5c0af5
packages your workstation needs to have installed in order for
Alain Reguera Delgado 5c0af5
@command{centos-art.sh} script to run correctly. If one or
Alain Reguera Delgado 5c0af5
more packages are uninstalled or out of date, the
Alain Reguera Delgado 5c0af5
@command{centos-art.sh} script asks you to confirm their
Alain Reguera Delgado 5c0af5
installation or actualization through the @command{sudo yum} command.
Alain Reguera Delgado 5c0af5
@end defun
Alain Reguera Delgado 5c0af5
Alain Reguera Delgado 5c0af5
@defun prepare_getEnvars
Alain Reguera Delgado 5c0af5
The @code{prepare_getEnvars} function outputs a brief description of
Alain Reguera Delgado 5c0af5
relevant environment variables the @command{centos-art.sh} script
Alain Reguera Delgado 5c0af5
makes use of.
Alain Reguera Delgado 5c0af5
@end defun
Alain Reguera Delgado 5c0af5
Alain Reguera Delgado 5c0af5
@defun prepare_getLinkName DIRECTORY, FILE
Alain Reguera Delgado 5c0af5
The @code{prepare_getLinkName} function takes a @var{DIRECTORY} path
Alain Reguera Delgado 5c0af5
as first argument and a @var{FILE} path as second argument to output a
Alain Reguera Delgado 5c0af5
file name with the path information that remains from substracting the
Alain Reguera Delgado 5c0af5
@var{DIRECTORY} path from the @var{FILE} path provided as argument.
Alain Reguera Delgado 5c0af5
@end defun
Alain Reguera Delgado 5c0af5