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

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