From ca7cda2b642d49876bfa492e8747ec10fa34fa4d Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Sep 23 2010 14:05:13 +0000 Subject: Rename prepare action to info. The prepare action doesn't prepare a thing but display information about required packages, paths, etc. --- diff --git a/Scripts/Bash/Functions/Info/prepare.sh b/Scripts/Bash/Functions/Info/prepare.sh new file mode 100755 index 0000000..7503967 --- /dev/null +++ b/Scripts/Bash/Functions/Info/prepare.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 prepare { + + # Define prepare variables. + + # Define prepare actions. + prepare_getActions + +} diff --git a/Scripts/Bash/Functions/Info/prepare_forUsingPackages.sh b/Scripts/Bash/Functions/Info/prepare_forUsingPackages.sh new file mode 100644 index 0000000..4e8feaf --- /dev/null +++ b/Scripts/Bash/Functions/Info/prepare_forUsingPackages.sh @@ -0,0 +1,61 @@ +#!/bin/bash +# +# prepare_forUsingPackages.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 prepare_forUsingPackages { + + # 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/prepare_forUsingPathCli.sh b/Scripts/Bash/Functions/Info/prepare_forUsingPathCli.sh new file mode 100755 index 0000000..ee6ddf2 --- /dev/null +++ b/Scripts/Bash/Functions/Info/prepare_forUsingPathCli.sh @@ -0,0 +1,51 @@ +#!/bin/bash +# +# prepare_forUsingPathCli.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 prepare_forUsingPathCli { + + # 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/prepare_forUsingPathFonts.sh b/Scripts/Bash/Functions/Info/prepare_forUsingPathFonts.sh new file mode 100644 index 0000000..0220e65 --- /dev/null +++ b/Scripts/Bash/Functions/Info/prepare_forUsingPathFonts.sh @@ -0,0 +1,52 @@ +#!/bin/bash +# +# prepare_forUsingPathFonts.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 prepare_forUsingPathFonts { + + # 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/prepare_forUsingPathInkscape.sh b/Scripts/Bash/Functions/Info/prepare_forUsingPathInkscape.sh new file mode 100755 index 0000000..63417e9 --- /dev/null +++ b/Scripts/Bash/Functions/Info/prepare_forUsingPathInkscape.sh @@ -0,0 +1,53 @@ +#!/bin/bash +# +# prepare_forUsingPathInkscape.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 prepare_forUsingPathInkscape { + + # 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/prepare_forUsingPaths.sh b/Scripts/Bash/Functions/Info/prepare_forUsingPaths.sh new file mode 100644 index 0000000..ece08e1 --- /dev/null +++ b/Scripts/Bash/Functions/Info/prepare_forUsingPaths.sh @@ -0,0 +1,34 @@ +#!/bin/bash +# +# prepare_forUsingPaths.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 prepare_forUsingPaths { + + prepare_forUsingPathCli + prepare_forUsingPathFonts + prepare_forUsingPathInkscape + +} diff --git a/Scripts/Bash/Functions/Info/prepare_getActions.sh b/Scripts/Bash/Functions/Info/prepare_getActions.sh new file mode 100755 index 0000000..f2aa680 --- /dev/null +++ b/Scripts/Bash/Functions/Info/prepare_getActions.sh @@ -0,0 +1,46 @@ +#!/bin/bash +# +# prepare_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 prepare_getActions { + + case $OPTIONNAM in + + --packages ) + prepare_forUsingPackages + ;; + + --paths ) + prepare_forUsingPaths + ;; + + * ) + cli_printMessage "`gettext "The option provided is not valid."`" + + esac + + cli_printMessage "$(caller)" "AsToKnowMoreLine" + +} + diff --git a/Scripts/Bash/Functions/Prepare/prepare.sh b/Scripts/Bash/Functions/Prepare/prepare.sh deleted file mode 100755 index 7503967..0000000 --- a/Scripts/Bash/Functions/Prepare/prepare.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 prepare { - - # Define prepare variables. - - # Define prepare actions. - prepare_getActions - -} diff --git a/Scripts/Bash/Functions/Prepare/prepare_forUsingPackages.sh b/Scripts/Bash/Functions/Prepare/prepare_forUsingPackages.sh deleted file mode 100644 index 4e8feaf..0000000 --- a/Scripts/Bash/Functions/Prepare/prepare_forUsingPackages.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/bash -# -# prepare_forUsingPackages.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 prepare_forUsingPackages { - - # 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/Prepare/prepare_forUsingPathCli.sh b/Scripts/Bash/Functions/Prepare/prepare_forUsingPathCli.sh deleted file mode 100755 index ee6ddf2..0000000 --- a/Scripts/Bash/Functions/Prepare/prepare_forUsingPathCli.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/bash -# -# prepare_forUsingPathCli.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 prepare_forUsingPathCli { - - # 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/Prepare/prepare_forUsingPathFonts.sh b/Scripts/Bash/Functions/Prepare/prepare_forUsingPathFonts.sh deleted file mode 100644 index 0220e65..0000000 --- a/Scripts/Bash/Functions/Prepare/prepare_forUsingPathFonts.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/bash -# -# prepare_forUsingPathFonts.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 prepare_forUsingPathFonts { - - # 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/Prepare/prepare_forUsingPathInkscape.sh b/Scripts/Bash/Functions/Prepare/prepare_forUsingPathInkscape.sh deleted file mode 100755 index 63417e9..0000000 --- a/Scripts/Bash/Functions/Prepare/prepare_forUsingPathInkscape.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/bash -# -# prepare_forUsingPathInkscape.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 prepare_forUsingPathInkscape { - - # 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/Prepare/prepare_forUsingPaths.sh b/Scripts/Bash/Functions/Prepare/prepare_forUsingPaths.sh deleted file mode 100644 index ece08e1..0000000 --- a/Scripts/Bash/Functions/Prepare/prepare_forUsingPaths.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash -# -# prepare_forUsingPaths.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 prepare_forUsingPaths { - - prepare_forUsingPathCli - prepare_forUsingPathFonts - prepare_forUsingPathInkscape - -} diff --git a/Scripts/Bash/Functions/Prepare/prepare_getActions.sh b/Scripts/Bash/Functions/Prepare/prepare_getActions.sh deleted file mode 100755 index f2aa680..0000000 --- a/Scripts/Bash/Functions/Prepare/prepare_getActions.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/bash -# -# prepare_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 prepare_getActions { - - case $OPTIONNAM in - - --packages ) - prepare_forUsingPackages - ;; - - --paths ) - prepare_forUsingPaths - ;; - - * ) - cli_printMessage "`gettext "The option provided is not valid."`" - - esac - - cli_printMessage "$(caller)" "AsToKnowMoreLine" - -} -