Blame Manuals/en/Html/Repository/repository_31.html

4c79b5
4c79b5
<html>
4c79b5
4c79b5
can you do inside it.
4c79b5
4c79b5
Copyright C 2009, 2010 CentOS Artwork SIG. 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
-->
4c79b5
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>
4c79b5
<title>CentOS Artwork Repository: 3.28 trunk/Scripts/Bash/Config</title>
4c79b5
4c79b5
<meta name="description" content="CentOS Artwork Repository: 3.28 trunk/Scripts/Bash/Config">
4c79b5
<meta name="keywords" content="CentOS Artwork Repository: 3.28 trunk/Scripts/Bash/Config">
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
4c79b5
@import "/home/centos/artwork/trunk/Identity/Themes/Motifs/Modern/Web/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
4c79b5
[ < ]
4c79b5
[ > ]
4c79b5
   
4c79b5
[ << ]
4c79b5
[ Up ]
4c79b5
[ >> ]
4c79b5
   
4c79b5
   
4c79b5
   
4c79b5
   
4c79b5
[Top]
4c79b5
[Contents]
4c79b5
[Index]
4c79b5
[ ? ]
4c79b5
4c79b5
4c79b5
4c79b5

3.28 trunk/Scripts/Bash/Config

4c79b5
4c79b5
4c79b5
4c79b5

3.28.1 Goals

4c79b5
4c79b5

The <tt>`trunk/Scripts/Bash/Config'</tt> directory exists to oraganize

4c79b5
pre-rendering configuration scripts.
4c79b5

4c79b5
4c79b5
4c79b5

3.28.2 Description

4c79b5
4c79b5

Pre-rendering configuration scripts let you customize the way

4c79b5
centos-art.sh script renders identity and translation
4c79b5
repository entries.  Pre-rendering configuration scripts are
4c79b5
<tt>`render.conf.sh'</tt> files with loadConfiguration function
4c79b5
definition inside. 
4c79b5

4c79b5

There is one <tt>`render.conf.sh'</tt> file for each pre-rendering

4c79b5
configuration entry. Pre-rendering configuration entries can be based
4c79b5
both on identity and translation repository entires.  Pre-rendering
4c79b5
configuration entries are required for each identity entry, but not
4c79b5
for translation entries. 
4c79b5

4c79b5
4c79b5
4c79b5

3.28.2.1 The <tt>`render.conf.sh'</tt> identity model

4c79b5
4c79b5

Inside CentOS Artwork Repository, we consider directories under

4c79b5
<tt>`trunk/Identity'</tt> as identity entries. Identity entries can be
4c79b5
image-based or text-based. When you render image-based identity
4c79b5
entries you need to use image-based pre-rendering configuration
4c79b5
scripts. Likewise, when you render text-based identity entries you
4c79b5
need to use text-based pre-rendering configuration scripts.
4c79b5

4c79b5

Inside both image-based and text-based identity pre-rendering

4c79b5
configuration scripts, we use the <samp>`ACTIONS'</samp> array variable to
4c79b5
define the way centos-art.sh script performs identity
4c79b5
rendering. The first entry inside <samp>`ACTIONS'</samp> array variable (i.e.,
4c79b5
<samp>`ACTIONS[0]'</samp>) is reserved to define the primary rendering action
4c79b5
(i.e, <samp>`renderImage'</samp> or <samp>`renderText'</samp>).  Further entries
4c79b5
inside <samp>`ACTIONS'</samp> (i.e., <samp>`ACTIONS[1]'</samp>, <samp>`ACTIONS[2]'</samp>,
4c79b5
etc.) are used to define identity post-rendering actions.
4c79b5

4c79b5

Inside identity pre-rendering configuration scripts, image-based

4c79b5
pre-rendering configuration scripts look like the following:
4c79b5

4c79b5
#!/bin/bash
4c79b5
4c79b5
function loadConfiguration {
4c79b5
4c79b5
    # Define post-rendering actions. An empty value means that no
4c79b5
    # post-rendering action is applied.
4c79b5
    ACTIONS[0]='renderImage'
4c79b5
    ACTIONS[1]='renderFormats: tif xpm pdf ppm'
4c79b5
4c79b5
}
4c79b5
4c79b5

Inside identity pre-rendering configuration scripts, text-based

4c79b5
pre-rendering configuration scripts look like the following:
4c79b5

4c79b5
#!/bin/bash
4c79b5
4c79b5
function loadConfiguration {
4c79b5
4c79b5
    # Define post-rendering actions. An empty value means that no
4c79b5
    # post-rendering action is applied.
4c79b5
    ACTIONS[0]='renderText'
4c79b5
    ACTIONS[1]='formatText: --width=70 --uniform-spacing'
4c79b5
4c79b5
}
4c79b5
4c79b5

When using identity pre-rendering configuration scripts, you can

4c79b5
extend both image-based and text-based pre-rendering configuration
4c79b5
scripts using image-based and text-based post-rendering actions,
4c79b5
respectively. 
4c79b5

4c79b5
4c79b5
4c79b5

3.28.2.2 The <tt>`render.conf.sh'</tt> translation model

4c79b5
4c79b5

Translation pre-rendering configuration scripts take precedence before

4c79b5
default translation rendering action. Translation pre-rendering
4c79b5
actions are useful when default translation rendering action do not
4c79b5
fit itself to translation entry rendering requirements.
4c79b5

4c79b5
4c79b5
4c79b5

3.28.3 Usage

4c79b5
4c79b5

Use the following commands to administer both identity and translation

4c79b5
pre-rendering configuration scripts:
4c79b5

4c79b5
4c79b5
<samp>`centos-art config 'path/to/dir/' --create'</samp>
4c79b5
4c79b5

Use this command to create <samp>`path/to/dir'</samp> related pre-rendering

4c79b5
configuration script.
4c79b5

4c79b5
4c79b5
<samp>`centos-art config 'path/to/dir/' --edit'</samp>
4c79b5
4c79b5

Use this command to edit <samp>`path/to/dir'</samp> related pre-rendering

4c79b5
configuration script.  
4c79b5

4c79b5
4c79b5
<samp>`centos-art config 'path/to/dir/' --read'</samp>
4c79b5
4c79b5

Use this command to read <samp>`path/to/dir'</samp> related pre-rendering

4c79b5
configuration script.  
4c79b5

4c79b5
4c79b5
<samp>`centos-art config 'path/to/dir/' --remove'</samp>
4c79b5
4c79b5

Use this command to remove <samp>`path/to/dir'</samp> related pre-rendering

4c79b5
configuration script.
4c79b5

4c79b5
4c79b5
4c79b5
4c79b5

In the commands above, <samp>`path/to/dir'</samp> refers to one renderable

4c79b5
directory path under <tt>`trunk/Identity'</tt> or
4c79b5
<tt>`trunk/Translations'</tt> structures only. 
4c79b5

4c79b5
4c79b5
4c79b5

3.28.4 See also

4c79b5
4c79b5
4c79b5
3.29 trunk/Scripts/Bash/Config/Identity  
4c79b5
4c79b5
3.30 trunk/Scripts/Bash/Config/Translations  
4c79b5
4c79b5
3.27 trunk/Scripts/Bash  
4c79b5
4c79b5
4c79b5
4c79b5
4c79b5
4c79b5
[ < ]
4c79b5
[ > ]
4c79b5
   
4c79b5
[ << ]
4c79b5
[ Up ]
4c79b5
[ >> ]
4c79b5
4c79b5

4c79b5
 <font size="-1">
4c79b5
  This document was generated on September, 18 2010 using texi2html 1.76.
4c79b5
 </font>
4c79b5
 
4c79b5
4c79b5

4c79b5
</body>
4c79b5
</html>