Blame Manual/centos-art.sh-latex/Identity/Themes/Distro/BootUp/RHGB/build.sh

a3d7e8
#!/bin/bash
a3d7e8
#
a3d7e8
# Build RHGB tables for LaTeX documents.
a3d7e8
#
a3d7e8
# Copyright (C) 2009 Alain Reguera Delgado
a3d7e8
#
a3d7e8
# This program is free software; you can redistribute it and/or modify
a3d7e8
# it under the terms of the GNU General Public License as published by
a3d7e8
# the Free Software Foundation; either version 2 of the License, or
a3d7e8
# (at your option) any later version.
a3d7e8
#
a3d7e8
# This program is distributed in the hope that it will be useful, but
a3d7e8
# WITHOUT ANY WARRANTY; without even the implied warranty of
a3d7e8
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
a3d7e8
# General Public License for more details.
a3d7e8
#
a3d7e8
# You should have received a copy of the GNU General Public License
a3d7e8
# along with this program; if not, write to the Free Software
a3d7e8
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
a3d7e8
# USA
a3d7e8
#
a3d7e8
#--------------------------------------
a3d7e8
# $Id:$
a3d7e8
#--------------------------------------
a3d7e8
a3d7e8
# Load functions.
a3d7e8
. ~/artwork/trunk/Scripts/Bash/loadFunctions.sh
a3d7e8
a3d7e8
# Define the names of your tables.
a3d7e8
FILES="table-theme.tex"
a3d7e8
a3d7e8
for FILE in $FILES;do
a3d7e8
a3d7e8
   # Let know which table we are creating.
a3d7e8
   echo $FILE
a3d7e8
a3d7e8
   # Define what to do with each table you define on FILES.
a3d7e8
   case $FILE in
a3d7e8
a3d7e8
      table-theme.tex )
a3d7e8
      # Create table holding theme files.
a3d7e8
      ROWS="$(getFiles '/usr/share/rhgb' '.*\.png')"
a3d7e8
      ;;
a3d7e8
a3d7e8
   esac
a3d7e8
a3d7e8
   # Create table.
a3d7e8
   createTable "$ROWS" "" "" > $FILE
a3d7e8
a3d7e8
done