Blame Manuals/Repository/filesystem-latex/Identity/Themes/Distro/BootUp/GSplash/build.sh

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