From 1459f47e62dd16d00c5585c83abf78d000e0ed93 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Jan 17 2011 03:55:33 +0000 Subject: Update initEnvironment.sh and cli_printMessage: - Remove centos-art.sh personal information. The copyright information is used by `render' functionality and `about' functionality. Inside `render' functionality we use the function cli_getCopyrightInfo and inside `about' functionality we use the file copying.txt to show both the copyright information and the license under which centos-art.sh script is released. The cli name (CLINAME) variable is used by cli_printMessage to print AsErrorLines. Since this is its only use, I removed the CLINAME variable definition from initEnvironment and started to use the `centos-art' string inside cli_printMessage function instead. The version (CLIVERSION) and description (CLIDESCRIP) are not used, so they were removed saftly. --- diff --git a/Scripts/Bash/Functions/cli_printMessage.sh b/Scripts/Bash/Functions/cli_printMessage.sh index 9008cb7..c7e8184 100755 --- a/Scripts/Bash/Functions/cli_printMessage.sh +++ b/Scripts/Bash/Functions/cli_printMessage.sh @@ -203,7 +203,7 @@ function cli_printMessage { # Add script name to message. We want to know where # messages come from. The `--quiet' flag doesn't suppress # error messages. - echo "${CLINAME}: ${MESSAGE}" + echo "centos-art: ${MESSAGE}" ;; 'AsToKnowMoreLine' ) diff --git a/Scripts/Bash/initEnvironment.sh b/Scripts/Bash/initEnvironment.sh index 0bffc8e..6d49651 100755 --- a/Scripts/Bash/initEnvironment.sh +++ b/Scripts/Bash/initEnvironment.sh @@ -29,12 +29,6 @@ export TEXTDOMAIN=centos-art.sh export TEXTDOMAINDIR=/home/centos/artwork/trunk/Scripts/Bash/Locale -# Initialize centos-art.sh personal information. -export CLINAME='centos-art.sh' -export CLIVERSION='Beta' -export CLIDESCRIP="`gettext "The CentOS Artwork Repository automation tool."`" -export CLICOPYRIGHT="Copyright (C) 2009-2011 Alain Reguera Delgado" - # Initialize centos-art.sh function scripts. FILES=$(ls /home/centos/artwork/trunk/Scripts/Bash/Functions/{cli,cli_*}.sh) for FILE in $FILES;do