From 2dfda0f8f918c3223676604f0447ae359ba85397 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Sep 23 2010 14:18:53 +0000 Subject: Rename info action to verify because we not only display information about paths and packages but verify them too. --- diff --git a/Scripts/Bash/Functions/Info/info.sh b/Scripts/Bash/Functions/Info/info.sh deleted file mode 100755 index 012558f..0000000 --- a/Scripts/Bash/Functions/Info/info.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash -# -# prepare.sh -- This function prepares your workstation for using -# centos-art.sh script. -# -# Copyright (C) 2009-2010 Alain Reguera Delgado -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 -# USA. -# -# ---------------------------------------------------------------------- -# $Id$ -# ---------------------------------------------------------------------- - -function info { - - # Define prepare variables. - - # Define prepare actions. - info_getActions - -} diff --git a/Scripts/Bash/Functions/Info/info_getActions.sh b/Scripts/Bash/Functions/Info/info_getActions.sh deleted file mode 100755 index 6d045eb..0000000 --- a/Scripts/Bash/Functions/Info/info_getActions.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/bash -# -# info_getActions.sh -- This function defines prepare actions. -# -# Copyright (C) 2009-2010 Alain Reguera Delgado -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 -# USA. -# -# ---------------------------------------------------------------------- -# $Id$ -# ---------------------------------------------------------------------- - -function info_getActions { - - case $OPTIONNAM in - - --packages ) - info_getPackages - ;; - - --paths ) - info_getPaths - ;; - - * ) - cli_printMessage "`gettext "The option provided is not valid."`" - - esac - - cli_printMessage "$(caller)" "AsToKnowMoreLine" - -} - diff --git a/Scripts/Bash/Functions/Info/info_getPackages.sh b/Scripts/Bash/Functions/Info/info_getPackages.sh deleted file mode 100644 index 88d905d..0000000 --- a/Scripts/Bash/Functions/Info/info_getPackages.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/bash -# -# info_getPackages.sh -- This function queries your system's -# rpm database to verify centos-art.sh required packages existence. -# If there is any missing package, leave a message and quit script -# execution. -# -# Copyright (C) 2009-2010 Alain Reguera Delgado -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 -# USA. -# -# ---------------------------------------------------------------------- -# $Id$ -# ---------------------------------------------------------------------- - -function info_getPackages { - - # Define variables as local to avoid conflicts outside. - local PACKAGE='' - local PACKAGES='' - local PACKAGE_INFO='' - - # Define required packages needed by centos-art.sh script. - PACKAGES="bash inkscape ImageMagick netpbm netpbm-progs - syslinux gimp coreutils texinfo info tetex-latex tetex-fonts - tetex-doc tetex-xdvi tetex-dvips gettext texi2html" - - # Define, from required packages, packages being from third - # parties (i.e., packages not included in rhel, nor centos [base] - # repository.). - PACKAGES_FROM_THIRDS="(inkscape|blender)" - - # Output table of packages needed by centos-art.sh script. - for PACKAGE in $PACKAGES;do - PACKAGE_INFO=$(rpm -q --queryformat "%{SUMMARY}" $PACKAGE \ - | tr "\n" ' ' | sed -r 's!^([[:alpha:]])!\u\1!' ) - cli_printMessage "$PACKAGE | $PACKAGE_INFO" - done \ - | egrep -i $REGEX \ - | awk 'BEGIN {FS="|"; format ="%15s|%s\n" - printf "--------------------------------------------------------------------------------\n" - printf format, "'`gettext "Package"`' ", " '`gettext "Description"`'" - printf "--------------------------------------------------------------------------------\n"} - {printf format, substr($1,0,15), $2} - END {printf "--------------------------------------------------------------------------------\n"}' - - cli_printMessage "$(caller)" "AsToKnowMoreLine" -} diff --git a/Scripts/Bash/Functions/Info/info_getPathCli.sh b/Scripts/Bash/Functions/Info/info_getPathCli.sh deleted file mode 100755 index 556f07a..0000000 --- a/Scripts/Bash/Functions/Info/info_getPathCli.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/bash -# -# info_getPathCli.sh -- This function -# -# Copyright (C) 2009-2010 Alain Reguera Delgado -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 -# USA. -# -# ---------------------------------------------------------------------- -# $Id$ -# ---------------------------------------------------------------------- - -function info_getPathCli { - - # Define variables as local to avoid conflicts outside. - local -a REPODIRS - local -a REPOFILES - local -a REPOLINKS - - # Define directories required by the centos-art.sh script command - # line interface. - REPODIRS[0]=/home/centos - REPODIRS[1]=/home/centos/bin - REPODIRS[2]=/home/centos/artwork/trunk/Scripts/Bash - - # Define files required by the centos-art.sh script command line - # interface. - REPOFILES=${REPODIRS[2]}/centos-art.sh - - # Define symbolic links required by the centos-art.sh script - # command line interface. - REPOLINKS=${REPODIRS[1]}/centos-art - - # Check defined directories, files, and symbolic links. - cli_checkFiles ${REPOFILES[@]} 'f' - cli_checkFiles ${REPOLINKS[@]} 'h' - -} diff --git a/Scripts/Bash/Functions/Info/info_getPathFonts.sh b/Scripts/Bash/Functions/Info/info_getPathFonts.sh deleted file mode 100644 index d7e5fd5..0000000 --- a/Scripts/Bash/Functions/Info/info_getPathFonts.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/bash -# -# info_getPathFonts.sh -- This function checks user's fonts -# directory. In order for some artworks to be rendered correctly, -# denmark font needs to be available. By default, denmark font doesn't -# come with CentOS distribution so create a symbolic link (from the -# one we have inside repository) to make it available if it isn't yet. -# -# Copyright (C) 2009-2010 Alain Reguera Delgado -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 -# USA. -# -# ---------------------------------------------------------------------- -# $Id$ -# ---------------------------------------------------------------------- - -function info_getPathFonts { - - # Define variables as local to avoid conflicts outside. - local -a REPODIRS - local -a REPOFILES - local -a REPOLINKS - - # Define font related directories. - REPODIRS[0]=/home/centos/.fonts - REPODIRS[1]=/home/centos/artwork/trunk/Identity/Fonts/Ttf - - # Define font related files. - REPOFILES=${REPODIRS[0]}/denmark.ttf - - # Define font related symbolic links. - REPOLINKS=${REPODIRS[1]}/denmark.ttf - - # Check defined directories, files, and symbolic links. - cli_checkFiles "${REPODIRS[@]}" - cli_checkFiles "${REPOFILES[@]}" - cli_checkFiles "${REPOLINKS[@]}" - -} diff --git a/Scripts/Bash/Functions/Info/info_getPathInkscape.sh b/Scripts/Bash/Functions/Info/info_getPathInkscape.sh deleted file mode 100755 index 1c7c55d..0000000 --- a/Scripts/Bash/Functions/Info/info_getPathInkscape.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/bash -# -# info_getPathInkscape.sh -- This function prepares user's -# ~/.inkscape configurations directory to use CentOS defaults (e.g., -# palettes, patterns, etc). -# -# Copyright (C) 2009-2010 Alain Reguera Delgado -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 -# USA. -# -# ---------------------------------------------------------------------- -# $Id$ -# ---------------------------------------------------------------------- - -function info_getPathInkscape { - - # Define variables as local to avoid conflicts outside. - local -a REPODIRS - local -a REPOFILES - local -a REPOLINKS - - # Define directories required by the centos-art.sh script command - # line interface. - REPODIRS[0]=/home/centos/.inkscape/palettes - REPODIRS[1]=/home/centos/artwork/trunk/Identity/Colors - - # Define files required by the centos-art.sh script command line - # interface. - REPOFILES=${REPODIRS[1]}/CentOS.gpl - - # Define symbolic links required by the centos-art.sh script - # command line interface. - REPOLINKS=${REPODIRS[0]}/CentOS.gpl - - # Check defined directories, files, and symbolic links. - cli_checkFiles "${REPODIRS[@]}" - cli_checkFiles "${REPOFILES[@]}" - cli_checkFiles "${REPOLINKS[@]}" - -} diff --git a/Scripts/Bash/Functions/Info/info_getPaths.sh b/Scripts/Bash/Functions/Info/info_getPaths.sh deleted file mode 100644 index b3b55b6..0000000 --- a/Scripts/Bash/Functions/Info/info_getPaths.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash -# -# info_getPaths.sh -- This function verifies centos-art.sh -# required paths existence. If there is any missing path, leave a -# message and quit script execution. -# -# Copyright (C) 2009-2010 Alain Reguera Delgado -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 -# USA. -# -# ---------------------------------------------------------------------- -# $Id$ -# ---------------------------------------------------------------------- - -function info_getPaths { - - info_getPathCli - info_getPathFonts - info_getPathInkscape - -} diff --git a/Scripts/Bash/Functions/Verify/info.sh b/Scripts/Bash/Functions/Verify/info.sh new file mode 100755 index 0000000..012558f --- /dev/null +++ b/Scripts/Bash/Functions/Verify/info.sh @@ -0,0 +1,34 @@ +#!/bin/bash +# +# prepare.sh -- This function prepares your workstation for using +# centos-art.sh script. +# +# Copyright (C) 2009-2010 Alain Reguera Delgado +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +# USA. +# +# ---------------------------------------------------------------------- +# $Id$ +# ---------------------------------------------------------------------- + +function info { + + # Define prepare variables. + + # Define prepare actions. + info_getActions + +} diff --git a/Scripts/Bash/Functions/Verify/info_getActions.sh b/Scripts/Bash/Functions/Verify/info_getActions.sh new file mode 100755 index 0000000..6d045eb --- /dev/null +++ b/Scripts/Bash/Functions/Verify/info_getActions.sh @@ -0,0 +1,46 @@ +#!/bin/bash +# +# info_getActions.sh -- This function defines prepare actions. +# +# Copyright (C) 2009-2010 Alain Reguera Delgado +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +# USA. +# +# ---------------------------------------------------------------------- +# $Id$ +# ---------------------------------------------------------------------- + +function info_getActions { + + case $OPTIONNAM in + + --packages ) + info_getPackages + ;; + + --paths ) + info_getPaths + ;; + + * ) + cli_printMessage "`gettext "The option provided is not valid."`" + + esac + + cli_printMessage "$(caller)" "AsToKnowMoreLine" + +} + diff --git a/Scripts/Bash/Functions/Verify/info_getPackages.sh b/Scripts/Bash/Functions/Verify/info_getPackages.sh new file mode 100644 index 0000000..88d905d --- /dev/null +++ b/Scripts/Bash/Functions/Verify/info_getPackages.sh @@ -0,0 +1,61 @@ +#!/bin/bash +# +# info_getPackages.sh -- This function queries your system's +# rpm database to verify centos-art.sh required packages existence. +# If there is any missing package, leave a message and quit script +# execution. +# +# Copyright (C) 2009-2010 Alain Reguera Delgado +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +# USA. +# +# ---------------------------------------------------------------------- +# $Id$ +# ---------------------------------------------------------------------- + +function info_getPackages { + + # Define variables as local to avoid conflicts outside. + local PACKAGE='' + local PACKAGES='' + local PACKAGE_INFO='' + + # Define required packages needed by centos-art.sh script. + PACKAGES="bash inkscape ImageMagick netpbm netpbm-progs + syslinux gimp coreutils texinfo info tetex-latex tetex-fonts + tetex-doc tetex-xdvi tetex-dvips gettext texi2html" + + # Define, from required packages, packages being from third + # parties (i.e., packages not included in rhel, nor centos [base] + # repository.). + PACKAGES_FROM_THIRDS="(inkscape|blender)" + + # Output table of packages needed by centos-art.sh script. + for PACKAGE in $PACKAGES;do + PACKAGE_INFO=$(rpm -q --queryformat "%{SUMMARY}" $PACKAGE \ + | tr "\n" ' ' | sed -r 's!^([[:alpha:]])!\u\1!' ) + cli_printMessage "$PACKAGE | $PACKAGE_INFO" + done \ + | egrep -i $REGEX \ + | awk 'BEGIN {FS="|"; format ="%15s|%s\n" + printf "--------------------------------------------------------------------------------\n" + printf format, "'`gettext "Package"`' ", " '`gettext "Description"`'" + printf "--------------------------------------------------------------------------------\n"} + {printf format, substr($1,0,15), $2} + END {printf "--------------------------------------------------------------------------------\n"}' + + cli_printMessage "$(caller)" "AsToKnowMoreLine" +} diff --git a/Scripts/Bash/Functions/Verify/info_getPathCli.sh b/Scripts/Bash/Functions/Verify/info_getPathCli.sh new file mode 100755 index 0000000..556f07a --- /dev/null +++ b/Scripts/Bash/Functions/Verify/info_getPathCli.sh @@ -0,0 +1,51 @@ +#!/bin/bash +# +# info_getPathCli.sh -- This function +# +# Copyright (C) 2009-2010 Alain Reguera Delgado +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +# USA. +# +# ---------------------------------------------------------------------- +# $Id$ +# ---------------------------------------------------------------------- + +function info_getPathCli { + + # Define variables as local to avoid conflicts outside. + local -a REPODIRS + local -a REPOFILES + local -a REPOLINKS + + # Define directories required by the centos-art.sh script command + # line interface. + REPODIRS[0]=/home/centos + REPODIRS[1]=/home/centos/bin + REPODIRS[2]=/home/centos/artwork/trunk/Scripts/Bash + + # Define files required by the centos-art.sh script command line + # interface. + REPOFILES=${REPODIRS[2]}/centos-art.sh + + # Define symbolic links required by the centos-art.sh script + # command line interface. + REPOLINKS=${REPODIRS[1]}/centos-art + + # Check defined directories, files, and symbolic links. + cli_checkFiles ${REPOFILES[@]} 'f' + cli_checkFiles ${REPOLINKS[@]} 'h' + +} diff --git a/Scripts/Bash/Functions/Verify/info_getPathFonts.sh b/Scripts/Bash/Functions/Verify/info_getPathFonts.sh new file mode 100644 index 0000000..d7e5fd5 --- /dev/null +++ b/Scripts/Bash/Functions/Verify/info_getPathFonts.sh @@ -0,0 +1,52 @@ +#!/bin/bash +# +# info_getPathFonts.sh -- This function checks user's fonts +# directory. In order for some artworks to be rendered correctly, +# denmark font needs to be available. By default, denmark font doesn't +# come with CentOS distribution so create a symbolic link (from the +# one we have inside repository) to make it available if it isn't yet. +# +# Copyright (C) 2009-2010 Alain Reguera Delgado +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +# USA. +# +# ---------------------------------------------------------------------- +# $Id$ +# ---------------------------------------------------------------------- + +function info_getPathFonts { + + # Define variables as local to avoid conflicts outside. + local -a REPODIRS + local -a REPOFILES + local -a REPOLINKS + + # Define font related directories. + REPODIRS[0]=/home/centos/.fonts + REPODIRS[1]=/home/centos/artwork/trunk/Identity/Fonts/Ttf + + # Define font related files. + REPOFILES=${REPODIRS[0]}/denmark.ttf + + # Define font related symbolic links. + REPOLINKS=${REPODIRS[1]}/denmark.ttf + + # Check defined directories, files, and symbolic links. + cli_checkFiles "${REPODIRS[@]}" + cli_checkFiles "${REPOFILES[@]}" + cli_checkFiles "${REPOLINKS[@]}" + +} diff --git a/Scripts/Bash/Functions/Verify/info_getPathInkscape.sh b/Scripts/Bash/Functions/Verify/info_getPathInkscape.sh new file mode 100755 index 0000000..1c7c55d --- /dev/null +++ b/Scripts/Bash/Functions/Verify/info_getPathInkscape.sh @@ -0,0 +1,53 @@ +#!/bin/bash +# +# info_getPathInkscape.sh -- This function prepares user's +# ~/.inkscape configurations directory to use CentOS defaults (e.g., +# palettes, patterns, etc). +# +# Copyright (C) 2009-2010 Alain Reguera Delgado +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +# USA. +# +# ---------------------------------------------------------------------- +# $Id$ +# ---------------------------------------------------------------------- + +function info_getPathInkscape { + + # Define variables as local to avoid conflicts outside. + local -a REPODIRS + local -a REPOFILES + local -a REPOLINKS + + # Define directories required by the centos-art.sh script command + # line interface. + REPODIRS[0]=/home/centos/.inkscape/palettes + REPODIRS[1]=/home/centos/artwork/trunk/Identity/Colors + + # Define files required by the centos-art.sh script command line + # interface. + REPOFILES=${REPODIRS[1]}/CentOS.gpl + + # Define symbolic links required by the centos-art.sh script + # command line interface. + REPOLINKS=${REPODIRS[0]}/CentOS.gpl + + # Check defined directories, files, and symbolic links. + cli_checkFiles "${REPODIRS[@]}" + cli_checkFiles "${REPOFILES[@]}" + cli_checkFiles "${REPOLINKS[@]}" + +} diff --git a/Scripts/Bash/Functions/Verify/info_getPaths.sh b/Scripts/Bash/Functions/Verify/info_getPaths.sh new file mode 100644 index 0000000..b3b55b6 --- /dev/null +++ b/Scripts/Bash/Functions/Verify/info_getPaths.sh @@ -0,0 +1,34 @@ +#!/bin/bash +# +# info_getPaths.sh -- This function verifies centos-art.sh +# required paths existence. If there is any missing path, leave a +# message and quit script execution. +# +# Copyright (C) 2009-2010 Alain Reguera Delgado +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +# USA. +# +# ---------------------------------------------------------------------- +# $Id$ +# ---------------------------------------------------------------------- + +function info_getPaths { + + info_getPathCli + info_getPathFonts + info_getPathInkscape + +}