Blame Scripts/Bash/Functions/About/about_printLicense.sh

edc7d9
#!/bin/bash
edc7d9
#
d8fc9d
# about_printLicense.sh -- This function provide the interface to read
edc7d9
# license information.
edc7d9
#
edc7d9
# Copyright (C) 2009, 2010 Alain Reguera Delgado
edc7d9
# 
edc7d9
# This program is free software; you can redistribute it and/or
edc7d9
# modify it under the terms of the GNU General Public License as
edc7d9
# published by the Free Software Foundation; either version 2 of the
edc7d9
# License, or (at your option) any later version.
edc7d9
# 
edc7d9
# This program is distributed in the hope that it will be useful, but
edc7d9
# WITHOUT ANY WARRANTY; without even the implied warranty of
edc7d9
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
edc7d9
# General Public License for more details.
edc7d9
#
edc7d9
# You should have received a copy of the GNU General Public License
edc7d9
# along with this program; if not, write to the Free Software
edc7d9
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
edc7d9
# USA.
edc7d9
# 
edc7d9
# ----------------------------------------------------------------------
d8fc9d
# $Id: about_printLicense.sh 538 2010-11-26 11:12:33Z al $
edc7d9
# ----------------------------------------------------------------------
edc7d9
edc7d9
d8fc9d
function about_printLicense {
edc7d9
d8fc9d
    local -a FILES
edc7d9
d8fc9d
    # Define absolute paths to copying information.
d8fc9d
    FILES[0]="/home/centos/artwork/trunk/Scripts/Bash/Functions/About/Config/copying.txt"
d8fc9d
    FILES[1]="/home/centos/artwork/trunk/Scripts/Bash/Functions/About/Config/copying-short.txt"
edc7d9
d8fc9d
    # Output brief license message.
d8fc9d
    cli_printMessage "$CLINAME ($CLIVERSION) -- $CLIDESCRIP
edc7d9
d8fc9d
        $CLICOPYRIGHT
edc7d9
d8fc9d
        $(cat ${FILES[1]})" 'AsHeadingLine'
edc7d9
edc7d9
    # Output full license message.
edc7d9
    cli_printMessage "`gettext "Do you want to read the full license?"`" 'AsYesOrNoRequestLine'
d8fc9d
    less ${FILES[0]}
edc7d9
edc7d9
}