| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function cli_getCopyrightInfo { |
| |
| local NOTE='' |
| local DIR='' |
| local -a DIRS |
| local -a NOTES |
| local COUNT=0 |
| |
| |
| DIRS[0]="$(cli_getRepoTLDir)/Identity/Themes/Motifs/$(cli_getThemeName)/Concept" |
| |
| case "$1" in |
| |
| '--description' ) |
| |
| |
| NOTE="The CentOS Project corporate visual identity" |
| |
| |
| |
| NOTES[0]="=NAME= is an artistic motif and theme for ${NOTE}." |
| ;; |
| |
| '--license' ) |
| |
| |
| |
| NOTE="Creative Common Attribution-ShareAlike 3.0 License" |
| |
| |
| |
| NOTES[0]="=NAME= artistic motif and theme are released under ${NOTE}." |
| ;; |
| |
| '--copyright' | * ) |
| |
| |
| NOTE="Copyright © 2003-$(date +%Y) The CentOS Project. All rights reserved." |
| |
| |
| |
| NOTES[0]=$(cli_readFileContent \ |
| "$(cli_getRepoTLDir)/Identity/Themes/Motifs/$(cli_getThemeName)/authors.txt" \ |
| '--copyright') |
| ;; |
| esac |
| |
| |
| |
| while [[ ${COUNT} -lt ${#DIRS[*]} ]];do |
| if [[ $ACTIONVAL =~ "${DIRS[$COUNT]}" ]];then |
| if [[ "${NOTES[$COUNT]}" != '' ]];then |
| NOTE=${NOTES[$COUNT]} |
| fi |
| fi |
| COUNT=$(($COUNT + 1)) |
| done |
| |
| |
| echo $NOTE |
| |
| } |