Blame Manuals/Tcar-fs/en_US/Trunk/scripts-functions-prepare.texinfo

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