Blame Manuals/en/Html/Repository/repository_33.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
-->
1e9202
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>
bc3531
<title>CentOS Artwork Repository: 3.30 trunk/Scripts/Bash/Config</title>
4c79b5
bc3531
<meta name="description" content="CentOS Artwork Repository: 3.30 trunk/Scripts/Bash/Config">
bc3531
<meta name="keywords" content="CentOS Artwork Repository: 3.30 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
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
1e9202
[ < ]
1e9202
[ > ]
4c79b5
   
4c79b5
[ << ]
4c79b5
[ Up ]
1e9202
[ >> ]
4c79b5
   
4c79b5
   
4c79b5
   
4c79b5
   
4c79b5
[Top]
4c79b5
[Contents]
1e9202
[Index]
4c79b5
[ ? ]
4c79b5
bc3531
1e9202
bc3531

3.30 trunk/Scripts/Bash/Config

bc3531
bc3531
1e9202
bc3531

3.30.1 Goals

bc3531
bc3531

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

bc3531
pre-rendering configuration scripts.
bc3531

bc3531
1e9202
bc3531

3.30.2 Description

4c79b5
bc3531

Pre-rendering configuration scripts let you customize the way

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

bc3531

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

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

4c79b5
1e9202
bc3531

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

bc3531
bc3531

Inside CentOS Artwork Repository, we consider directories under

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

bc3531

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

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

bc3531

Inside identity pre-rendering configuration scripts, image-based

bc3531
pre-rendering configuration scripts look like the following:
bc3531

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

Inside identity pre-rendering configuration scripts, text-based

bc3531
pre-rendering configuration scripts look like the following:
bc3531

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

When using identity pre-rendering configuration scripts, you can

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

bc3531
1e9202
bc3531

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

4c79b5
bc3531

Translation pre-rendering configuration scripts take precedence before

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

4c79b5
1e9202
4c79b5

3.30.3 Usage

4c79b5
bc3531

Use the following commands to administer both identity and translation

bc3531
pre-rendering configuration scripts:
bc3531

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

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

bc3531
configuration script.
bc3531

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

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

bc3531
configuration script.  
bc3531

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

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

bc3531
configuration script.  
bc3531

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

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

bc3531
configuration script.
bc3531

bc3531
bc3531
4c79b5
bc3531

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

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

4c79b5
1e9202
4c79b5

3.30.4 See also

4c79b5
bc3531
1e9202
3.31 trunk/Scripts/Bash/Config/Identity  
bc3531
1e9202
3.32 trunk/Scripts/Bash/Config/Translations  
bc3531
1e9202
3.29 trunk/Scripts/Bash  
bc3531
bc3531
4c79b5
4c79b5
4c79b5
1e9202
[ < ]
1e9202
[ > ]
4c79b5
   
4c79b5
[ << ]
1e9202
[ Up ]
1e9202
[ >> ]
4c79b5
4c79b5

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

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