From 59c0e3760505b29638dfafbdf8f13d6d689d92fa Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Sep 23 2010 14:17:39 +0000 Subject: Update names inside centos-art.sh script info action. --- diff --git a/Scripts/Bash/Functions/Info/info.sh b/Scripts/Bash/Functions/Info/info.sh new file mode 100755 index 0000000..012558f --- /dev/null +++ b/Scripts/Bash/Functions/Info/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/Info/info_getActions.sh b/Scripts/Bash/Functions/Info/info_getActions.sh new file mode 100755 index 0000000..6d045eb --- /dev/null +++ b/Scripts/Bash/Functions/Info/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/Info/info_getPackages.sh b/Scripts/Bash/Functions/Info/info_getPackages.sh new file mode 100644 index 0000000..88d905d --- /dev/null +++ b/Scripts/Bash/Functions/Info/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/Info/info_getPathCli.sh b/Scripts/Bash/Functions/Info/info_getPathCli.sh new file mode 100755 index 0000000..556f07a --- /dev/null +++ b/Scripts/Bash/Functions/Info/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/Info/info_getPathFonts.sh b/Scripts/Bash/Functions/Info/info_getPathFonts.sh new file mode 100644 index 0000000..d7e5fd5 --- /dev/null +++ b/Scripts/Bash/Functions/Info/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/Info/info_getPathInkscape.sh b/Scripts/Bash/Functions/Info/info_getPathInkscape.sh new file mode 100755 index 0000000..1c7c55d --- /dev/null +++ b/Scripts/Bash/Functions/Info/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/Info/info_getPaths.sh b/Scripts/Bash/Functions/Info/info_getPaths.sh new file mode 100644 index 0000000..b3b55b6 --- /dev/null +++ b/Scripts/Bash/Functions/Info/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 + +} diff --git a/Scripts/Bash/Functions/Info/prepare.sh b/Scripts/Bash/Functions/Info/prepare.sh deleted file mode 100755 index 7503967..0000000 --- a/Scripts/Bash/Functions/Info/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/Info/prepare_forUsingPackages.sh b/Scripts/Bash/Functions/Info/prepare_forUsingPackages.sh deleted file mode 100644 index 4e8feaf..0000000 --- a/Scripts/Bash/Functions/Info/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/Info/prepare_forUsingPathCli.sh b/Scripts/Bash/Functions/Info/prepare_forUsingPathCli.sh deleted file mode 100755 index ee6ddf2..0000000 --- a/Scripts/Bash/Functions/Info/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/Info/prepare_forUsingPathFonts.sh b/Scripts/Bash/Functions/Info/prepare_forUsingPathFonts.sh deleted file mode 100644 index 0220e65..0000000 --- a/Scripts/Bash/Functions/Info/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/Info/prepare_forUsingPathInkscape.sh b/Scripts/Bash/Functions/Info/prepare_forUsingPathInkscape.sh deleted file mode 100755 index 63417e9..0000000 --- a/Scripts/Bash/Functions/Info/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/Info/prepare_forUsingPaths.sh b/Scripts/Bash/Functions/Info/prepare_forUsingPaths.sh deleted file mode 100644 index ece08e1..0000000 --- a/Scripts/Bash/Functions/Info/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/Info/prepare_getActions.sh b/Scripts/Bash/Functions/Info/prepare_getActions.sh deleted file mode 100755 index f2aa680..0000000 --- a/Scripts/Bash/Functions/Info/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" - -} -