Blame Manuals/Latex/centos-art.sh-latex/Identity/Themes/Distro/Backgrounds/build.sh

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