|
|
1971b4 |
#!/bin/bash
|
|
|
1971b4 |
#
|
|
|
1971b4 |
# cli_getCopyrightInfo.sh -- This function outputs copyright
|
|
|
1971b4 |
# information based on action value (ACTIONVAL) variable.
|
|
|
1971b4 |
#
|
|
|
1971b4 |
# Copyright (C) 2009-2011 Alain Reguera Delgado
|
|
|
1971b4 |
#
|
|
|
1971b4 |
# This program is free software; you can redistribute it and/or
|
|
|
1971b4 |
# modify it under the terms of the GNU General Public License as
|
|
|
1971b4 |
# published by the Free Software Foundation; either version 2 of the
|
|
|
1971b4 |
# License, or (at your option) any later version.
|
|
|
1971b4 |
#
|
|
|
1971b4 |
# This program is distributed in the hope that it will be useful, but
|
|
|
1971b4 |
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
1971b4 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
1971b4 |
# General Public License for more details.
|
|
|
1971b4 |
#
|
|
|
1971b4 |
# You should have received a copy of the GNU General Public License
|
|
|
1971b4 |
# along with this program; if not, write to the Free Software
|
|
|
1971b4 |
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
|
1971b4 |
# USA.
|
|
|
1971b4 |
#
|
|
|
1971b4 |
# ----------------------------------------------------------------------
|
|
|
1971b4 |
# $Id$
|
|
|
1971b4 |
# ----------------------------------------------------------------------
|
|
|
1971b4 |
|
|
|
1971b4 |
function cli_getCopyrightInfo {
|
|
|
1971b4 |
|
|
|
1971b4 |
# Define default copyright information.
|
|
|
1971b4 |
local COPYRIGHT="Copyright © 2003-$(date +%Y) The CentOS Project. All rights reserved."
|
|
|
1971b4 |
|
|
|
1971b4 |
# When the concept directory structure of an artistic motif is
|
|
|
1971b4 |
# rendered, redefine copyright information printed on images to
|
|
|
1971b4 |
# reflect the fact that authors of artistic motifs own the
|
|
|
1971b4 |
# creation rights of the artistic motif. We want to motivate
|
|
|
1971b4 |
# people to produce more artistic motifs, so they should have the
|
|
|
1971b4 |
# creation rights of artistic motifs they create and also know
|
|
|
1971b4 |
# that fact.
|
|
|
1971b4 |
#
|
|
|
1971b4 |
# In order for an artistic motif to store under CentOS Artwork
|
|
|
1971b4 |
# Repository, the author of the artistic motif needs to agree the
|
|
|
1971b4 |
# terms of the license The CentOS Project set for the CentOS
|
|
|
1971b4 |
# artistic motifs to have. Otherwise, The CentOS Project should
|
|
|
1971b4 |
# reject that artistic motif from being stored under CentOS
|
|
|
1971b4 |
# Artwork Repository.
|
|
|
1971b4 |
if [[ $ACTIONVAL =~ "$(cli_getRepoTLDir)/Identity/Themes/Motifs/$(cli_getThemeName)/Concept" ]];then
|
|
|
1971b4 |
|
|
|
1971b4 |
# Define path to file containing artistic motifs authors
|
|
|
1971b4 |
# copyright information.
|
|
|
1971b4 |
local AUTHORS="$(cli_getRepoTLDir)/Identity/Themes/Motifs/$(cli_getThemeName)/authors.txt"
|
|
|
1971b4 |
|
|
|
1971b4 |
# Verify file containing artistic motifs authors' copyright
|
|
|
1971b4 |
# information and redefine default copyright information to
|
|
|
1971b4 |
# use authors' copyright information instead.
|
|
|
1971b4 |
if [[ -f $AUTHORS ]];then
|
|
|
1971b4 |
COPYRIGHT="$(cat $AUTHORS)"
|
|
|
1971b4 |
fi
|
|
|
1971b4 |
|
|
|
1971b4 |
fi
|
|
|
1971b4 |
|
|
|
1971b4 |
# Print copyright information.
|
|
|
1971b4 |
echo $COPYRIGHT
|
|
|
1971b4 |
|
|
|
1971b4 |
}
|