|
|
4c79b5 |
|
|
|
4c79b5 |
<html>
|
|
|
09d4f2 |
|
|
|
09d4f2 |
|
|
|
09d4f2 |
The CentOS Artwork Repository exists to organize and automate The
|
|
|
09d4f2 |
CentOS Project corporate visual identity (, to
|
|
|
09d4f2 |
start on).
|
|
|
4c79b5 |
|
|
|
6c4982 |
Copyright C 2009, 2010 Alain Reguera Delgado. All rights
|
|
|
4c79b5 |
reserved.
|
|
|
4c79b5 |
|
|
|
4c79b5 |
Permission is granted to copy, distribute and/or modify this document
|
|
|
4c79b5 |
under the terms of the GNU Free Documentation License, Version 1.2 or
|
|
|
4c79b5 |
any later version published by the Free Software Foundation; with no
|
|
|
4c79b5 |
Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A
|
|
|
4c79b5 |
copy of the license is included in the section entitled GNU Free
|
|
|
4c79b5 |
Documentation License.
|
|
|
4c79b5 |
-->
|
|
|
49b888 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
|
|
|
4c79b5 |
Karl Berry <karl@freefriends.org>
|
|
|
4c79b5 |
Olaf Bachmann <obachman@mathematik.uni-kl.de>
|
|
|
4c79b5 |
and many others.
|
|
|
4c79b5 |
Maintained by: Many creative people <dev@texi2html.cvshome.org>
|
|
|
4c79b5 |
Send bugs and suggestions to <users@texi2html.cvshome.org>
|
|
|
4c79b5 |
|
|
|
4c79b5 |
-->
|
|
|
4c79b5 |
<head>
|
|
|
0d952c |
<title>CentOS Artwork Repository: 3.47 trunk/Scripts/Bash/Functions/Verify</title>
|
|
|
4c79b5 |
|
|
|
0d952c |
<meta name="description" content="CentOS Artwork Repository: 3.47 trunk/Scripts/Bash/Functions/Verify">
|
|
|
0d952c |
<meta name="keywords" content="CentOS Artwork Repository: 3.47 trunk/Scripts/Bash/Functions/Verify">
|
|
|
4c79b5 |
<meta name="resource-type" content="document">
|
|
|
4c79b5 |
<meta name="distribution" content="global">
|
|
|
4c79b5 |
<meta name="Generator" content="texi2html 1.76">
|
|
|
4c79b5 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
|
4c79b5 |
<style type="text/css">
|
|
|
4c79b5 |
|
|
|
1e9202 |
@import "/home/centos/artwork/trunk/Identity/Models/Css/Texi2html/common.css";
|
|
|
4c79b5 |
|
|
|
4c79b5 |
a.summary-letter {text-decoration: none}
|
|
|
4c79b5 |
pre.display {font-family: serif}
|
|
|
4c79b5 |
pre.format {font-family: serif}
|
|
|
4c79b5 |
pre.menu-comment {font-family: serif}
|
|
|
4c79b5 |
pre.menu-preformatted {font-family: serif}
|
|
|
4c79b5 |
pre.smalldisplay {font-family: serif; font-size: smaller}
|
|
|
4c79b5 |
pre.smallexample {font-size: smaller}
|
|
|
4c79b5 |
pre.smallformat {font-family: serif; font-size: smaller}
|
|
|
4c79b5 |
pre.smalllisp {font-size: smaller}
|
|
|
4c79b5 |
span.sansserif {font-family:sans-serif; font-weight:normal;}
|
|
|
4c79b5 |
ul.toc {list-style: none}
|
|
|
4c79b5 |
-->
|
|
|
4c79b5 |
</style>
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
</head>
|
|
|
4c79b5 |
|
|
|
4c79b5 |
<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
0d952c |
[ < ]
|
|
|
0d952c |
[ > ]
|
|
|
4c79b5 |
|
|
|
4c79b5 |
[ << ]
|
|
|
4c79b5 |
[ Up ]
|
|
|
0d952c |
[ >> ]
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
[Top]
|
|
|
4c79b5 |
[Contents]
|
|
|
0d952c |
[Index]
|
|
|
4c79b5 |
[ ? ]
|
|
|
4c79b5 |
|
|
|
0d952c |
|
|
|
0d952c |
|
|
|
0d952c |
3.47 trunk/Scripts/Bash/Functions/Verify
|
|
|
0d952c |
|
|
|
0d952c |
|
|
|
0d952c |
|
|
|
0d952c |
3.47.1 Goals
|
|
|
0d952c |
|
|
|
0d952c |
This section exists to organize files related to <tt>`centos-art.sh'</tt>
|
|
|
0d952c |
script <samp>`verify'</samp> functionality. The <samp>`verify'</samp>
|
|
|
0d952c |
functionality of <tt>`centos-art.sh'</tt> script helps you to verify the
|
|
|
0d952c |
workstation configuration you are planning to use as host for your
|
|
|
0d952c |
working copy of CentOS Artwork Repository.
|
|
|
0d952c |
|
|
|
0d952c |
|
|
|
0d952c |
|
|
|
0d952c |
3.47.2 Description
|
|
|
0d952c |
|
|
|
0d952c |
The first time you download CentOS Artwork Repository you need to
|
|
|
0d952c |
configure your workstation in order to use <tt>`centos-art.sh'</tt>
|
|
|
0d952c |
script. These preliminar configurations are based mainly on auxiliar
|
|
|
0d952c |
RPM packages installation, symbolic links creations, and environment
|
|
|
0d952c |
variables definitions. The <samp>`verify'</samp> functionality of
|
|
|
0d952c |
<tt>`centos-art.sh'</tt> script guides you through this preliminar
|
|
|
0d952c |
configuration process.
|
|
|
0d952c |
|
|
|
0d952c |
If this is the first time you run <tt>`centos-art.sh'</tt> script, the
|
|
|
0d952c |
appropriate way to use its <samp>`verify'</samp> functionality is not using
|
|
|
0d952c |
the <tt>`centos-art.sh'</tt> script directly, but the absolute path to
|
|
|
0d952c |
centos-art.sh script instead (i.e.,
|
|
|
0d952c |
<tt>`~/artwork/trunk/Scripts/Bash/centos-art.sh'</tt>). This is necessary
|
|
|
0d952c |
because <tt>`centos-art'</tt> symbolic link, under <tt>`~/bin/'</tt>
|
|
|
0d952c |
directory, has not been created yet.
|
|
|
0d952c |
|
|
|
0d952c |
|
|
|
3d6160 |
|
|
|
0d952c |
3.47.2.1 Packages
|
|
|
4c79b5 |
|
|
|
0d952c |
Installation of auxiliar RPM packages provides the software required
|
|
|
0d952c |
to manipulate files inside the repository (e.g., image files,
|
|
|
0d952c |
documentation files, translation files, script files, etc.). Most of
|
|
|
0d952c |
RPM packages centos-art.sh script uses are shipped with
|
|
|
0d952c |
CentOS distribution, and can be installed from CentOS base repository.
|
|
|
0d952c |
The only exception is <samp>`inkscape'</samp>, the package we use to
|
|
|
0d952c |
manipulate SVG files. The <samp>`inkscape'</samp> package is not inside
|
|
|
0d952c |
CentOS distribution so it needs to be installed from third party
|
|
|
0d952c |
repositories.
|
|
|
0d952c |
|
|
|
0d952c |
Note Configuration of third party repositories inside CentOS
|
|
|
0d952c |
distribution is described in CentOS wiki, specifically in the
|
|
|
0d952c |
following URL:
|
|
|
0d952c |
http://wiki.centos.org/AdditionalResources/Repositories
|
|
|
0d952c |
|
|
|
0d952c |
|
|
|
0d952c |
Before installing packages, the <tt>`centos-art.sh'</tt> script uses
|
|
|
0d952c |
sudo to request root privileges to execute yum 's
|
|
|
0d952c |
installation functionality. If your user isn't defined as a
|
|
|
0d952c |
privileged user--at least to run yum commands-- inside
|
|
|
0d952c |
<tt>`/etc/sudoers'</tt> configuration file, you will not be able to
|
|
|
0d952c |
perform package installation tasks as set in <tt>`centos-art.sh'</tt>
|
|
|
0d952c |
script <samp>`verify'</samp> functionality.
|
|
|
0d952c |
|
|
|
0d952c |
Setting sudo privileges to users is an administrative task you have to
|
|
|
0d952c |
do by yourself. If you don't have experience with sudo
|
|
|
0d952c |
command, please read its man page running the command: man
|
|
|
0d952c |
sudo. This reading will be very useful, and with some practice, you
|
|
|
0d952c |
will be able to configure your users to have sudo
|
|
|
0d952c |
privileges.
|
|
|
0d952c |
|
|
|
4c79b5 |
|
|
|
3d6160 |
|
|
|
0d952c |
3.47.2.2 Links
|
|
|
4c79b5 |
|
|
|
0d952c |
Creation of symbolic links helps us to alternate between different
|
|
|
0d952c |
implementations of <tt>`centos-art.sh'</tt> script-line (e.g.,
|
|
|
0d952c |
<tt>`centos-art.sh'</tt>, for Bash implementation; <tt>`centos-art.py'</tt>,
|
|
|
0d952c |
for Python implementation; <tt>`centos-art.pl'</tt>, for Perl
|
|
|
0d952c |
implementation; and so on for other implementations). The
|
|
|
0d952c |
<tt>`centos-art.sh'</tt> script-line definition takes place inside your
|
|
|
0d952c |
personal binary (<tt>`~/bin/'</tt>) directory in order to make the script
|
|
|
0d952c |
implementation --the one that <tt>`centos-art'</tt> links to-- available
|
|
|
0d952c |
to PATH environment variable.
|
|
|
0d952c |
|
|
|
0d952c |
Creation of symbolic links helps us to reuse components from repository
|
|
|
0d952c |
working copy. For example, color information files maintained inside
|
|
|
0d952c |
your working copy must never be duplicated inside program-specific
|
|
|
0d952c |
configuration directories that uses them in your workstation (e.g.,
|
|
|
0d952c |
Gimp, Inkscape, etc.). Instead, a symbolic link must be created for
|
|
|
0d952c |
each one of them, from program-specific configuration directories to
|
|
|
0d952c |
files in the working copy. In this configuration, when someone
|
|
|
0d952c |
commits changes to color information files up to central repository,
|
|
|
0d952c |
they--the changes committed-- will be immediatly available to your
|
|
|
0d952c |
programs the next time you update your working copy --the place
|
|
|
0d952c |
inside your workstation those color information files are stored--.
|
|
|
0d952c |
|
|
|
0d952c |
Creation of symbolic links helps us to make <tt>`centos-art.sh'</tt>
|
|
|
0d952c |
script functionalities available outside <tt>`trunk/'</tt> repository
|
|
|
0d952c |
directory structure, but at its same level in repository tree. This is
|
|
|
0d952c |
useful if you need to use the "render" functionality of
|
|
|
0d952c |
centos-art.sh under <tt>`branches/'</tt> repository directory
|
|
|
0d952c |
structure as you usually do inside <tt>`trunk/'</tt> repository directory
|
|
|
0d952c |
structure. As consequence of this configuration, automation scripts
|
|
|
0d952c |
cannot be branched under <tt>`branches/Scripts'</tt> directory structure.
|
|
|
035049 |
|
|
|
eae802 |
|
|
|
3d6160 |
|
|
|
0d952c |
3.47.2.3 Environment variables
|
|
|
49b888 |
|
|
|
0d952c |
Definition of environemnt variables helps us to set default values to
|
|
|
0d952c |
our user session life. The user session environment variable defintion
|
|
|
0d952c |
takes place in the user's <tt>`~/.bash_profile'</tt> file. The
|
|
|
0d952c |
<samp>`verify'</samp> functionality of <tt>`centos-art.sh'</tt> script doesn't
|
|
|
0d952c |
modify your <tt>`~/.bash_profile'</tt> file.
|
|
|
0d952c |
|
|
|
0d952c |
The <samp>`verify'</samp> functionality of <tt>`centos-art.sh'</tt> script
|
|
|
0d952c |
evaluates the following environment variables:
|
|
|
0d952c |
|
|
|
0d952c |
|
|
|
0d952c |
EDITOR
|
|
|
0d952c |
Default text editor.
|
|
|
49b888 |
|
|
|
0d952c |
The <tt>`centos-art.sh'</tt> script uses default text EDITOR to edit
|
|
|
0d952c |
pre-commit subversion messages, translation files, configuration
|
|
|
0d952c |
files, script files, and similar text-based files.
|
|
|
0d952c |
|
|
|
0d952c |
If EDITOR environment variable is not set, <tt>`centos-art.sh'</tt>
|
|
|
0d952c |
script uses <tt>`/usr/bin/vim'</tt> as default text editor. Otherwise, the
|
|
|
0d952c |
following values are recognized by <tt>`centos-art.sh'</tt> script:
|
|
|
0d952c |
|
|
|
0d952c |
|
|
|
0d952c |
<tt>`/usr/bin/vim'</tt>
|
|
|
0d952c |
<tt>`/usr/bin/emacs'</tt>
|
|
|
0d952c |
<tt>`/usr/bin/nano'</tt>
|
|
|
0d952c |
|
|
|
0d952c |
|
|
|
0d952c |
If no one of these values is set in EDITOR environment variable,
|
|
|
0d952c |
<tt>`centos-art.sh'</tt> uses <tt>`/usr/bin/vim'</tt> text editor by default.
|
|
|
0d952c |
|
|
|
0d952c |
|
|
|
0d952c |
TZ
|
|
|
0d952c |
|
|
|
0d952c |
Default time zone representation.
|
|
|
0d952c |
|
|
|
0d952c |
Time representation inside repository server is set to Coordinated
|
|
|
0d952c |
Universal Time (UTC). Time represetation inside repository working
|
|
|
0d952c |
copies is set as their administrators personally define.
|
|
|
0d952c |
|
|
|
0d952c |
When repository working copies time representation be defined, it
|
|
|
0d952c |
would be a very good convention to follow if working copies
|
|
|
0d952c |
administrators would set their systems clock to use UTC. Otherwise it
|
|
|
0d952c |
would be difficult for working copies users to find out when changes
|
|
|
0d952c |
were committed up to repository server exactly in time.
|
|
|
0d952c |
|
|
|
0d952c |
Tip Coordinated Univeral Time (UTC) representation can be
|
|
|
0d952c |
configured when you install CentOS distribution; or later, runing the
|
|
|
0d952c |
system-config-date command at a shell prompt from your
|
|
|
0d952c |
graphical interface.
|
|
|
0d952c |
|
|
|
0d952c |
|
|
|
0d952c |
Note If you set your system clock to use UTC representation,
|
|
|
0d952c |
you also need to set the TZ environment variable inside
|
|
|
0d952c |
<tt>`~/.bash_profile'</tt> as follows:
|
|
|
0d952c |
export TZ=UTC
|
|
|
0d952c |
This is required in order for your terminal to display the correct
|
|
|
0d952c |
time information of your zone, taking UTC representation as reference.
|
|
|
0d952c |
|
|
|
0d952c |
|
|
|
0d952c |
|
|
|
0d952c |
TEXTDOMAIN
|
|
|
0d952c |
|
|
|
0d952c |
Default domain used to retrieve translated messages. This value is
|
|
|
0d952c |
set in <tt>`initFunctions.sh'</tt> and shouldn't be changed.
|
|
|
0d952c |
|
|
|
0d952c |
|
|
|
0d952c |
TEXTDOMAINDIR
|
|
|
0d952c |
|
|
|
0d952c |
Default directory used to retrieve translated messages. This value is
|
|
|
0d952c |
set in <tt>`initFunctions.sh'</tt> and shouldn't be changed.
|
|
|
0d952c |
|
|
|
0d952c |
|
|
|
0d952c |
LANG
|
|
|
0d952c |
|
|
|
0d952c |
Default locale information. This value is set when you start your
|
|
|
0d952c |
session and can be changed using the <samp>`locale'</samp> functionality of
|
|
|
0d952c |
<tt>`centos-art.sh'</tt> script (see section trunk/Scripts/Bash/Functions/Locale, for more information).
|
|
|
0d952c |
|
|
|
0d952c |
|
|
|
0d952c |
|
|
|
54b5a5 |
|
|
|
3d6160 |
|
|
|
2c8180 |
3.47.3 Usage
|
|
|
6aec21 |
|
|
|
0d952c |
|
|
|
0d952c |
<samp>`centos-art verify --packages'</samp>
|
|
|
0d952c |
Verify required packages your workstation needs in order to run the
|
|
|
0d952c |
<tt>`centos-art.sh'</tt> script correctly. If there are missing packages,
|
|
|
0d952c |
the <tt>`centos-art.sh'</tt> script asks you to confirm their
|
|
|
0d952c |
installation. When installing packages, the <tt>`centos-art.sh'</tt>
|
|
|
0d952c |
script uses the yum application in order to achieve the
|
|
|
0d952c |
task.
|
|
|
0d952c |
|
|
|
0d952c |
In case all packages required by <tt>`centos-art.sh'</tt> script are
|
|
|
0d952c |
already installed in your workstation, the message <samp>`The required
|
|
|
0d952c |
packages are already installed.'</samp> is output for you to know.
|
|
|
0d952c |
|
|
|
0d952c |
|
|
|
0d952c |
<samp>`centos-art verify --links'</samp>
|
|
|
0d952c |
Verify required links your workstation needs in order to run the
|
|
|
0d952c |
centos-art command correctly. If any required link is missing, the
|
|
|
0d952c |
centos-art.sh script asks you to confirm their installation.
|
|
|
0d952c |
To install required links, the centos-art.sh script uses the
|
|
|
0d952c |
ln command.
|
|
|
0d952c |
|
|
|
0d952c |
In case all links required by <tt>`centos-art.sh'</tt> script are already
|
|
|
0d952c |
created in your workstation, the message <samp>`The required links are
|
|
|
0d952c |
already installed.'</samp> is output for you to know.
|
|
|
035049 |
|
|
|
0d952c |
In case a regular file exists with the same name of a required link,
|
|
|
0d952c |
the <tt>`centos-art.sh'</tt> script outputs the <samp>`Already exists as
|
|
|
0d952c |
regular file.'</samp> message when listing required links that will be
|
|
|
0d952c |
installed. Of course, as there is already a regular file where must be
|
|
|
0d952c |
a link, no link is created. In such cases the <tt>`centos-art.sh'</tt>
|
|
|
0d952c |
script will fall into a continue installation request for that missing
|
|
|
0d952c |
link. To end this continue request you can answer <samp>`No'</samp>, or
|
|
|
0d952c |
remove the existent regular file to let <tt>`centos-art.sh'</tt> script
|
|
|
0d952c |
install the link on its place.
|
|
|
0d952c |
|
|
|
0d952c |
|
|
|
0d952c |
<samp>`centos-art verify --environment'</samp>
|
|
|
0d952c |
<samp>`centos-art verify --environment --filter='regex''</samp>
|
|
|
0d952c |
Output a brief description of environment variables used by
|
|
|
0d952c |
<tt>`centos-art.sh'</tt> script.
|
|
|
0d952c |
|
|
|
0d952c |
If <samp>`--filter'</samp> option is provided, output is reduced as defined in
|
|
|
0d952c |
the <samp>`regex'</samp> regular expression value. If <samp>`--filter'</samp> option
|
|
|
0d952c |
is specified but <samp>`regex'</samp> value is not, the <tt>`centos-art.sh'</tt>
|
|
|
0d952c |
script outputs information as if <samp>`--filter'</samp> option had not been
|
|
|
0d952c |
provided at all.
|
|
|
0d952c |
|
|
|
0d952c |
|
|
|
0d952c |
|
|
|
6aec21 |
|
|
|
3d6160 |
|
|
|
4c79b5 |
3.47.4 See also
|
|
|
4c79b5 |
|
|
|
035049 |
|
|
|
0d952c |
3.36 trunk/Scripts/Bash
|
|
|
035049 |
|
|
|
0d952c |
3.37 trunk/Scripts/Bash/Functions
|
|
|
c6292c |
|
|
|
035049 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
3d6160 |
[ < ]
|
|
|
3d6160 |
[ > ]
|
|
|
4c79b5 |
|
|
|
4c79b5 |
[ << ]
|
|
|
0d952c |
[ Up ]
|
|
|
0d952c |
[ >> ]
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
<font size="-1">
|
|
|
49b888 |
This document was generated on December, 5 2010 using texi2html 1.76.
|
|
|
4c79b5 |
</font>
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
|
|
|
4c79b5 |
</body>
|
|
|
4c79b5 |
</html>
|