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 Alain Reguera Delgado. 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 November, 5 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.43 trunk/Scripts/Bash/Functions/Svg</title>

<meta name="description" content="CentOS Artwork Repository: 3.43 trunk/Scripts/Bash/Functions/Svg">
<meta name="keywords" content="CentOS Artwork Repository: 3.43 trunk/Scripts/Bash/Functions/Svg">
<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_45.html#SEC245" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="#SEC247" 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_62.html#SEC342" 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_62.html#SEC342" 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-Svg"></a>
<a name="SEC246"></a>
<h2 class="section"> 3.43 trunk/Scripts/Bash/Functions/Svg </h2>


<a name="SEC247"></a>
<h3 class="subsection"> 3.43.1 Goals </h3>

<p>This section exists to organize the &quot;svg&quot; functionality of
centos-art.sh script.
</p>

<a name="SEC248"></a>
<h3 class="subsection"> 3.43.2 Description </h3>

<p>The &quot;svg&quot; functionality of centos-art.sh script helps you to
maintain scalable vector graphics (SVG) inside repository. For
example, suppose you've been working in a set of (let's say 30) SVG
files, and you want to set common metadata to all of them. Doing so
file by file is a tedious task, so the centos-art.sh script provides
the &quot;svg&quot; functionality to aid you maintain such actions.
</p>
<p>Most &quot;svg&quot; actions take one opening tag (e.g., <samp>`&lt;metadata'</samp>),
and one closing tag (e.g., <samp>`&lt;/metadata'</samp>) and replace everything
in-between with the information you define. The information you need
to define is inside template files as sed's replacement commands.
Template files are stored under
<samp>`trunk/Scripts/Bash/Functions/Svg/Tpl/'</samp> directory and can contain
translation markers.
</p>
<p>Translation markers have the form <samp>`=SOMETEXT='</samp>. Translation
markers are used by &quot;svg&quot; functionalities to introduce dynamic
information (e.g., dates, keywords based on path, etc.)
</p>

<a name="SEC249"></a>
<h3 class="subsection"> 3.43.3 Usage </h3>

<dl compact="compact">
<dt> <code>centos-art svg --update-metadata='path/to/dir'</code></dt>
<dd><p>Use this command to update metadata information to all <samp>`.svg'</samp>
files under <samp>`path/to/dir'</samp> as defined in the metadata template
file.
</p>
</dd>
<dt> <code>centos-art svg --update-metadata='path/to/dir' --filter='filename'</code></dt>
<dd><p>Use this command to update metadata information to
<samp>`path/to/dir/filename'</samp>, as defined in the metadata template file.
</p></dd>
</dl>


<a name="SEC250"></a>
<h3 class="subsection"> 3.43.4 See also </h3>



<table cellpadding="1" cellspacing="1" border="0">
<tr><td valign="middle" align="left">[<a href="#SEC249" title="Previous section in reading order"> &lt; </a>]</td>
<td valign="middle" align="left">[<a href="repository_47.html#SEC251" 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="#SEC246" title="Up section"> Up </a>]</td>
<td valign="middle" align="left">[<a href="repository_62.html#SEC342" title="Next chapter"> &gt;&gt; </a>]</td>
</tr></table>
<p>
 <font size="-1">
  This document was generated on <i>November, 5 2010</i> using <a href="http://texi2html.cvshome.org/"><i>texi2html 1.76</i></a>.
 </font>
 <br>

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