Blame Scripts/Bash/Functions/Verify/verify_doPackages.sh

4c79b5
#!/bin/bash
4c79b5
#
644d20
# verify_doPackages.sh -- This function verifies required packages
644d20
# your workstation needs in order to run the centos-art command
644d20
# correctly. If there are missing packages, the `centos-art.sh' script
644d20
# asks you to confirm their installation. When installing packages,
644d20
# the `centos-art.sh' script uses the yum application in order to
644d20
# achieve the task.
4c79b5
#
4c79b5
# Copyright (C) 2009-2010 Alain Reguera Delgado
4c79b5
# 
4c79b5
# This program is free software; you can redistribute it and/or modify
4c79b5
# it under the terms of the GNU General Public License as published by
4c79b5
# the Free Software Foundation; either version 2 of the License, or
4c79b5
# (at your option) any later version.
4c79b5
# 
4c79b5
# This program is distributed in the hope that it will be useful, but
4c79b5
# WITHOUT ANY WARRANTY; without even the implied warranty of
4c79b5
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
4c79b5
# General Public License for more details.
4c79b5
#
4c79b5
# You should have received a copy of the GNU General Public License
4c79b5
# along with this program; if not, write to the Free Software
4c79b5
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
4c79b5
# USA.
4c79b5
# 
4c79b5
# ----------------------------------------------------------------------
3b853a
# $Id$
4c79b5
# ----------------------------------------------------------------------
4c79b5
644d20
function verify_doPackages {
4c79b5
4c79b5
    local PACKAGES=''
644d20
    local PACKAGES_THIRD_REGEX=''
644d20
    local PACKAGES_MISSING=''
644d20
    local PACKAGES_THIRD=''
644d20
    local COUNT=0
4c79b5
4c79b5
    # Define required packages needed by centos-art.sh script.
4c79b5
    PACKAGES="bash inkscape ImageMagick netpbm netpbm-progs
4c79b5
        syslinux gimp coreutils texinfo info tetex-latex tetex-fonts
644d20
        tetex-doc tetex-xdvi tetex-dvips a b c gettext texi2html"
4c79b5
4c79b5
    # Define, from required packages, packages being from third
644d20
    # parties (i.e., packages not included in CentOS [base]
4c79b5
    # repository.).
644d20
    PACKAGES_THIRD_REGEX="(inkscape|blender)"
4c79b5
644d20
    verify_doPackageCheck
644d20
    verify_doPackageReport
644d20
    # --- verify_doPackageInstall
3b853a
4c79b5
}