Blob Blame History Raw
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
<html>
<!--This manual describes what the CentOS Artwork Repository is and what
can you do inside it.

Copyright C 2009, 2010 CentOS Artwork SIG. All rights
reserved.

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.2 or
any later version published by the Free Software Foundation; with no
Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A
copy of the license is included in the section entitled GNU Free
Documentation License.  
-->
<!-- Created on October, 29 2010 by texi2html 1.76 -->
<!--
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
            Karl Berry  <karl@freefriends.org>
            Olaf Bachmann <obachman@mathematik.uni-kl.de>
            and many others.
Maintained by: Many creative people <dev@texi2html.cvshome.org>
Send bugs and suggestions to <users@texi2html.cvshome.org>

-->
<head>
<title>CentOS Artwork Repository: 3.47 trunk/Scripts/Bash/Functions/Verify</title>

<meta name="description" content="CentOS Artwork Repository: 3.47 trunk/Scripts/Bash/Functions/Verify">
<meta name="keywords" content="CentOS Artwork Repository: 3.47 trunk/Scripts/Bash/Functions/Verify">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="texi2html 1.76">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
<!--
@import "/home/centos/artwork/trunk/Identity/Models/Css/Texi2html/common.css";

a.summary-letter {text-decoration: none}
pre.display {font-family: serif}
pre.format {font-family: serif}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: serif; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: serif; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.sansserif {font-family:sans-serif; font-weight:normal;}
ul.toc {list-style: none}
-->
</style>


</head>

<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">

<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="repository_49.html#SEC267" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC269" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="repository_3.html#SEC3" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="repository_3.html#SEC3" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="repository_65.html#SEC362" title="Next chapter"> &gt;&gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="repository.html#SEC_Top" title="Cover (top) of document">Top</a>]</td>
<td valign="middle" align="left">[<a href="repository_toc.html#SEC_Contents" title="Table of contents">Contents</a>]</td>
<td valign="middle" align="left">[<a href="repository_65.html#SEC362" title="Index">Index</a>]</td>
<td valign="middle" align="left">[<a href="repository_abt.html#SEC_About" title="About (help)"> ? </a>]</td>
</tr></table>
<a name="trunk-Scripts-Bash-Functions-Verify"></a>
<a name="SEC268"></a>
<h2 class="section"> 3.47 trunk/Scripts/Bash/Functions/Verify </h2>


<a name="SEC269"></a>
<h3 class="subsection"> 3.47.1 Goals </h3>

<p>This section exists to organize files related to &quot;verify&quot;
functionality of centos-art.sh script.  The &quot;verify&quot; functionality
of centos-art.sh script helps you to prepare the workstation you are
planning to use centos-art.sh script.
</p>

<a name="SEC270"></a>
<h3 class="subsection"> 3.47.2 Description </h3>

<p>The first time you download CentOS Artwork Repository you need to
configure your workstation in order to use automation scripts.  These
preliminar configurations are based mainly on auxiliar RPM packages
installation, symbolic links creations, and environment variables
definitions.
</p>

<a name="SEC271"></a>
<h4 class="subsubsection"> 3.47.2.1 Packages </h4>

<p>Installation of auxiliar RPM packages provides the software required
to manipulate files inside the repository (e.g., image files,
documentation files, translation files, script files, etc.). Most of
RPM packages centos-art.sh script uses are shipped with CentOS
distribution, and can be installed from CentOS base repository. The
only exception is <samp>`inkscape'</samp>, the package we use to manipulate
SVG files.  The <samp>`inkscape'</samp> package is not inside CentOS
distribution so it needs to be installed from third party
repositories.
</p>
<blockquote class="blue"><img src="/home/centos/artwork/trunk/Identity/Widgets/Img/icon-admonition-info.png" alt="info"><h3>Note</h3><p> Configuration of third party repositories inside CentOS
distribution is described in CentOS wiki, specifically in the
following URL:
<a href="http://wiki.centos.org/AdditionalResources/Repositories">http://wiki.centos.org/AdditionalResources/Repositories</a>
</p></blockquote>


<a name="SEC272"></a>
<h4 class="subsubsection"> 3.47.2.2 Links </h4>

<p>Creation of symbolic links help us to reuse components inside
repository working copies. For example, palettes of colors maintained
inside your repository working copy are not duplicated inside
program-specific configuration directories that uses them in your
workstation.  Instead, a symbolic link is created for each one of
them, from program-specific configuration directories to files in
repository working copy.  In this configuration, when someone commits
changes to palettes of colors up to central repository, they--the
changes commited-- will be immediatly available to your programs the
next time you update your repository working copy where such palettes
of colors are.
</p>
<p>Creation of symbolic links help us to make automation scripts
available outside <tt>`trunk/'</tt> repository directory structure, but at
its same level it is in repository tree. This is useful if you need to
use &quot;render&quot; functionality under <tt>`branches/'</tt> repository
structure using the same automation scripts you use inside
<tt>`trunk/'</tt> repository directory structure. As consequence of this
configuration, automation scripts cannot be branched under
<tt>`branches/Scripts'</tt> directory structure.
</p>
<p>Creation of symbolic links help us to alternate between different
implementations of <code>centos-art</code> command-line (e.g.,
<tt>`centos-art.sh'</tt>, for Bash implementation; <tt>`centos-art.py'</tt>,
for Python implementation; <tt>`centos-art.pl'</tt>, for Perl
implementation; and so on for other implementations). The
<code>centos-art</code> command-line definition takes place inside your
personal binary (<tt>`~/bin/'</tt>) directory.
</p>

<a name="SEC273"></a>
<h4 class="subsubsection"> 3.47.2.3 Environment variables </h4>

<p>Definition of environment variables help us to set default values you
use along your user session. Environment variables definition takes
place inside your personal <tt>`~/.bash_profile'</tt> file. You can use
<tt>`~/.bash_profile'</tt> file to define which is your default text
editor (<var>EDITOR</var>), and any value you consider useful for your
day-by-day working journey.
</p>

<a name="SEC274"></a>
<h4 class="subsubsection"> 3.47.2.4 Time coordination </h4>

<p>Another convenction to consider is the time representation we use for
both repository server and repository working copies.  The time
representation in the repository server is set to Coordinated
Universal Time (UTC). It would be very convenient if you set your
workstation to use UTC too.  Otherwise it would be difficult for you
to find out when changes were committed in time exactly.
</p>
<blockquote class="orange"><img src="/home/centos/artwork/trunk/Identity/Widgets/Img/icon-admonition-idea.png" alt="Info"><h3>Tip</h3><p> Coordinated Univeral Time (UTC) time representation can
be configured when you install CentOS distribution, or later in your
graphical interface using the following command:
</p><pre class="verbatim">system-config-date
</pre></blockquote>

<blockquote class="blue"><img src="/home/centos/artwork/trunk/Identity/Widgets/Img/icon-admonition-info.png" alt="info"><h3>Note</h3><p> If you set your system clock to use UTC time
representation, you will need to set the <var>TZ</var> environment variable
inside <tt>`~/.bash_profile'</tt> as follows:
</p><pre class="verbatim">export TZ=UTC
</pre><p>This is required in order for your terminal to display the correct
time information of your zone, taking UTC time representation as
reference.
</p></blockquote>


<a name="SEC275"></a>
<h3 class="subsection"> 3.47.3 Usage </h3>

<p>If this is the first time you run <code>centos-art</code> command, the
appropriate way to execute &quot;verify&quot; functionality is not using the
<code>centos-art</code> command directly, but the absolute path to
<code>centos-art.sh</code> script instead (i.e.,
<tt>`~/artwork/trunk/Scripts/Bash/centos-art.sh'</tt>).
</p>
<dl compact="compact">
<dt> <samp>`centos-art verify --packages'</samp></dt>
<dd><p>This command verifies required packages your workstation needs in
order to run the <code>centos-art</code> command correctly. 
</p>
</dd>
<dt> <samp>`centos-art verify --links'</samp></dt>
<dd><p>This command verifies required links your workstation needs in order
to run the <code>centos-art</code> command correctly.
</p>
</dd>
<dt> <samp>`centos-art verify --environment'</samp></dt>
<dd><p>This command verifies required environment variables your workstation
needs in order to run <code>centos-art</code> command correctly.
</p></dd>
</dl>


<a name="SEC276"></a>
<h3 class="subsection"> 3.47.4 See also </h3>

<table class="menu" border="0" cellspacing="0">
<tr><td align="left" valign="top"><a href="repository_38.html#SEC205">3.35 trunk/Scripts/Bash/Functions</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">
</td></tr>
</table>


<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#SEC275" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="repository_51.html#SEC277" title="Next section in reading order"> &gt; </a>]</td>
<td valign="middle" align="left"> &nbsp; </td>
<td valign="middle" align="left">[<a href="repository_3.html#SEC3" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC268" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="repository_65.html#SEC362" title="Next chapter"> &gt;&gt; </a>]</td>
</tr></table>
<p>
 <font size="-1">
  This document was generated on <i>October, 29 2010</i> using <a href="http://texi2html.cvshome.org/"><i>texi2html 1.76</i></a>.
 </font>
 <br>

</p>
</body>
</html>