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

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