1459f4 Update initEnvironment.sh and cli_printMessage:

Authored and Committed by areguera 13 years ago
    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.
    
    
        
Scripts/Bash/Functions/cli_printMessage.sh CHANGED
@@ -203,7 +203,7 @@ function cli_printMessage {
203
203
# Add script name to message. We want to know where
204
204
# messages come from. The `--quiet' flag doesn't suppress
205
205
# error messages.
206
- echo "${CLINAME}: ${MESSAGE}"
206
+ echo "centos-art: ${MESSAGE}"
207
207
;;
208
208
209
209
'AsToKnowMoreLine' )
Scripts/Bash/initEnvironment.sh CHANGED
@@ -29,12 +29,6 @@
29
29
export TEXTDOMAIN=centos-art.sh
30
30
export TEXTDOMAINDIR=/home/centos/artwork/trunk/Scripts/Bash/Locale
31
31
32
- # Initialize centos-art.sh personal information.
33
- export CLINAME='centos-art.sh'
34
- export CLIVERSION='Beta'
35
- export CLIDESCRIP="`gettext "The CentOS Artwork Repository automation tool."`"
36
- export CLICOPYRIGHT="Copyright (C) 2009-2011 Alain Reguera Delgado"
37
-
38
32
# Initialize centos-art.sh function scripts.
39
33
FILES=$(ls /home/centos/artwork/trunk/Scripts/Bash/Functions/{cli,cli_*}.sh)
40
34
for FILE in $FILES;do