Blame Manuals/en/Texinfo/Repository/trunk/Scripts/Bash/Functions/Verify.texi

38bcd9
@subsection Goals
38bcd9
12494b
This section exists to organize files related to ``verify''
ca45c0
functionality of @file{centos-art.sh} script.  The ``verify''
ca45c0
functionality of @file{centos-art.sh} script helps you to prepare the
ca45c0
workstation you are planning to use @file{centos-art.sh} script.
38bcd9
38bcd9
@subsection Description
38bcd9
12494b
The first time you download CentOS Artwork Repository you need to
ca45c0
configure your workstation in order to use @file{centos-art.sh}
ca45c0
script.  These preliminar configurations are based mainly on auxiliar
ca45c0
RPM packages installation, symbolic links creations, and environment
ca45c0
variables definitions.  The ``verify'' functionality of
ca45c0
@file{centos-art.sh} script guides you through this preliminar
ca45c0
configuration process.  
ca45c0
ca45c0
If this is the first time you run @command{centos-art} command, the
ca45c0
appropriate way to use its ``verify'' functionality is not using the
ca45c0
@command{centos-art} command directly, but the absolute path to
ca45c0
@command{centos-art.sh} script instead (i.e.,
ca45c0
@file{~/artwork/trunk/Scripts/Bash/centos-art.sh}).  This is necessary
ca45c0
because @command{centos-art} symbolic link, under @file{~/bin/}
ca45c0
directory, has not been created yet.
eae802
eae802
@subsubsection Packages
12494b
12494b
Installation of auxiliar RPM packages provides the software required
12494b
to manipulate files inside the repository (e.g., image files,
12494b
documentation files, translation files, script files, etc.). Most of
ca45c0
RPM packages @command{centos-art.sh} script uses are shipped with
ca45c0
CentOS distribution, and can be installed from CentOS base repository.
ca45c0
The only exception is @samp{inkscape}, the package we use to
ca45c0
manipulate SVG files.  The @samp{inkscape} package is not inside
ca45c0
CentOS distribution so it needs to be installed from third party
eae802
repositories.
eae802
eae802
@quotation
eae802
@strong{Note} Configuration of third party repositories inside CentOS
eae802
distribution is described in CentOS wiki, specifically in the
eae802
following URL:
eae802
@url{http://wiki.centos.org/AdditionalResources/Repositories}
eae802
@end quotation
eae802
eae802
@subsubsection Links
eae802
ca45c0
Creation of symbolic links helps us to alternate between different
eae802
implementations of @command{centos-art} command-line (e.g.,
12494b
@file{centos-art.sh}, for Bash implementation; @file{centos-art.py},
12494b
for Python implementation; @file{centos-art.pl}, for Perl
eae802
implementation; and so on for other implementations). The
eae802
@command{centos-art} command-line definition takes place inside your
ca45c0
personal binary (@file{~/bin/}) directory in order to make the script
ca45c0
implementation ---the one that @command{centos-art} links to---
ca45c0
available to @var{PATH} environment variable.
ca45c0
ca45c0
Creation of symbolic links helps us to reuse components from repository
ca45c0
working copy. For example, color information files maintained inside
ca45c0
your working copy must never be duplicated inside program-specific
ca45c0
configuration directories that uses them in your workstation (e.g.,
ca45c0
Gimp, Inkscape, etc.).  Instead, a symbolic link must be created for
ca45c0
each one of them, from program-specific configuration directories to
ca45c0
files in the working copy.  In this configuration, when someone
ca45c0
commits changes to color information files up to central repository,
ca45c0
they---the changes committed--- will be immediatly available to your
ca45c0
programs the next time you update your working copy ---the place
ca45c0
inside your workstation those color information files are stored---.
ca45c0
ca45c0
Creation of symbolic links helps us to make @file{centos-art.sh}
ca45c0
script functionalities available outside @file{trunk/} repository
ca45c0
directory structure, but at its same level in repository tree. This is
ca45c0
useful if you need to use the ``render'' functionality of
ca45c0
@command{centos-art.sh} under @file{branches/} repository directory
ca45c0
structure as you usually do inside @file{trunk/} repository directory
ca45c0
structure. As consequence of this configuration, automation scripts
ca45c0
cannot be branched under @file{branches/Scripts} directory structure.
eae802
eae802
@subsubsection Environment variables
eae802
ca45c0
Definition of environemnt variables helps us to set default values to
ca45c0
our user session life. The user session environment variable defintion
ca45c0
takes place in the user's @file{~/.bash_profile} file.  The ``verify''
ca45c0
functionality of @file{centos-art.sh} script doesn't modify your
ca45c0
@file{~/.bash_profile} file.  
ca45c0
ca45c0
The ``verify'' functionality of @file{centos-art.sh} script evaluates
ca45c0
the following environment variables:
ca45c0
ca45c0
@table @strong
ca45c0
@item Default text editor (@var{EDITOR})
ca45c0
ca45c0
The @var{EDITOR} environment variable defines your user session
ca45c0
default text editor.
ca45c0
ca45c0
If @var{EDITOR} environment variable is not set ---or it uses one
ca45c0
value other than @file{/usr/bin/vim}, @file{/usr/bin/emacs}, or
ca45c0
@file{/usr/bin/nano}--- the @file{centos-art.sh} script uses
ca45c0
@file{/usr/bin/vim} as default text editor.
ca45c0
ca45c0
Default text editor is used by @file{centos-art.sh} script whenever it
ca45c0
needs to edit text-based files (e.g., subversion's pre-commit
ca45c0
messages, translation files, configuration files, script files, etc.)
eae802
ca45c0
@item Default time representation (@var{TZ})
eae802
ca45c0
The @var{TZ} environment variable defines your user session default
ca45c0
time zone representation.  
ca45c0
ca45c0
Time representation inside repository server is set to Coordinated
ca45c0
Universal Time (UTC).  Time represetation inside repository working
ca45c0
copies is set as their administrators personally define.  
ca45c0
ca45c0
When repository working copies time representation be defined, it
ca45c0
would be a very good convention to follow if working copies
ca45c0
administrators would set their systems clock to use UTC.  Otherwise it
ca45c0
would be difficult for working copies users to find out when changes
ca45c0
were committed up to repository server exactly in time.
eae802
eae802
@quotation
180cc5
@strong{Tip} Coordinated Univeral Time (UTC) representation can be
180cc5
configured when you install CentOS distribution, or later in your
eae802
graphical interface using the following command:
eae802
@verbatim
eae802
system-config-date
eae802
@end verbatim
eae802
@end quotation
eae802
eae802
@quotation
180cc5
@strong{Note} If you set your system clock to use UTC representation,
ca45c0
you also need to set the @var{TZ} environment variable inside
180cc5
@file{~/.bash_profile} as follows:
eae802
@verbatim
eae802
export TZ=UTC
eae802
@end verbatim
eae802
This is required in order for your terminal to display the correct
180cc5
time information of your zone, taking UTC representation as reference.
eae802
@end quotation
38bcd9
ca45c0
@end table
38bcd9
ca45c0
@subsection Usage
eae802
12494b
@table @samp
12494b
@item centos-art verify --packages
eae802
This command verifies required packages your workstation needs in
ca45c0
order to run the @command{centos-art} command correctly.  If there are
ca45c0
missing packages, the @file{centos-art.sh} script asks you to confirm
ca45c0
their installation. When installing packages, the @file{centos-art.sh}
ca45c0
script uses the @command{yum} application in order to achieve the
ca45c0
task.
12494b
eae802
@item centos-art verify --links
eae802
This command verifies required links your workstation needs in order
ca45c0
to run the @command{centos-art} command correctly. If there are
ca45c0
missing links, the @file{centos-art.sh} script asks you to confirm
ca45c0
their creation. When creating links, the @file{centos-art.sh} script
ca45c0
uses the @command{ln} application in order to achieve the task.
12494b
eae802
@item centos-art verify --environment
eae802
This command verifies required environment variables your workstation
ca45c0
needs in order to run @command{centos-art} command correctly. If
ca45c0
environment variables evaluated by @file{centos-art.sh} script are
ca45c0
emtpy, the @file{centos-art.sh} script informs you about it and
ca45c0
nothing else happens.
eae802
@end table
38bcd9
38bcd9
@subsection See also
38bcd9
38bcd9
@menu
eae802
* trunk Scripts Bash Functions::
38bcd9
@end menu