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

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