Blame Manuals/Repository/repository-latex/Identity/Themes/Distro/BootUp/RHGB/build.sh

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