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

edc7d9
#!/bin/bash
edc7d9
#
554c2e
# about_doLicense.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
# ----------------------------------------------------------------------
554c2e
# $Id: about_doLicense.sh 538 2010-11-26 11:12:33Z al $
edc7d9
# ----------------------------------------------------------------------
edc7d9
edc7d9
554c2e
function about_doLicense {
edc7d9
edc7d9
    local GPL_LARGE="/home/centos/artwork/trunk/Scripts/Bash/Functions/License/GPL"
edc7d9
    local GPL_SHORT="/home/centos/artwork/trunk/Scripts/Bash/Functions/License/GPL-short"
edc7d9
edc7d9
    # Build license message.
edc7d9
    local CLILICENSE="$CLINAME ($CLIVERSION) -- $CLIDESCRIP
edc7d9
edc7d9
        $CLICOPYRIGHT
edc7d9
edc7d9
        $(cat $GPL_SHORT)"
edc7d9
edc7d9
    # Output brief license message.
edc7d9
    cli_printMessage "$CLILICENSE" "AsHeadingLine"
edc7d9
edc7d9
    # Output full license message.
edc7d9
    cli_printMessage "`gettext "Do you want to read the full license?"`" 'AsYesOrNoRequestLine'
edc7d9
    less $GPL_LARGE
edc7d9
edc7d9
}