From aaed274c65f06739d7e3b1c07d367908d33d7421 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Mar 04 2011 02:16:13 +0000 Subject: Update cli_getCopyrightInfo.sh: - Stop retriving copyright year and copyright holder from copyright.txt files. - Stop using the `All rights reserved' string from copyright holder. I don't feel very clear right now about the legal impact of such sentence. Instead, I took copyright holder from CentOS 5.5 release notes as reference (/usr/share/doc/centos-release-notes-5.5/RELEASE-NOTES-en.html) just as it was made public by the project. - The copyright year is produced using `date +%Y' command. This way, the copyright year information will be updated each time you produce content with centos-art. --- diff --git a/Scripts/Bash/Cli/Functions/cli_getCopyrightInfo.sh b/Scripts/Bash/Cli/Functions/cli_getCopyrightInfo.sh index 4e2bab0..8b7a367 100755 --- a/Scripts/Bash/Cli/Functions/cli_getCopyrightInfo.sh +++ b/Scripts/Bash/Cli/Functions/cli_getCopyrightInfo.sh @@ -142,44 +142,14 @@ function cli_getCopyrightInfo { '--copyright-year' ) - local FILE='' - local YEAR='' - - # Define default copyright file. The place the copyright - # information is retrived from. - FILE="$(echo $TEMPLATE \ - | sed -r "s!(Themes/Models/${THEMEMODEL}).+!\1/copyright.txt!")" - - # Define default copyright year. - if [[ -f $FILE ]];then - YEAR=$(cli_readFileContent "${FILE}" '--copyright-year') - else - YEAR=$(date +%Y) - fi - # Output default copyright year. - echo $YEAR + date +%Y ;; '--copyright-holder' | * ) - local FILE='' - local HOLDER='' - - # Define default copyright file. The place the copyright - # information is retrived from. - FILE="$(echo $TEMPLATE \ - | sed -r "s!(Themes/Models/${THEMEMODEL}).+!\1/copyright.txt!")" - - # Define default copyright holder. - if [[ -f $FILE ]];then - HOLDER=$(cli_readFileContent "${FILE}" '--copyright-holder') - else - HOLDER="The CentOS Project. `gettext "All rights reserved."`" - fi - # Output default copyright holder. - echo $HOLDER + echo "The CentOS Project" ;; esac