17dbe5 Update cli_getCopyrightInfo.sh:

Authored and Committed by areguera 13 years ago
    Update cli_getCopyrightInfo.sh:
    
        - Stop using `--copyright-holder' option as default action when no
          argument is passed to cli_getCopyrightInfo function. Instead,
          add `--copyright' option and start using it. The `--copyright'
          option combines both the `--copyright-holder' and the
          `--copyright-year' options to build the full copyright notice as
          `Copyright © YEAR HOLDER'.
    
    
        
Scripts/Functions/cli_getCopyrightInfo.sh CHANGED
@@ -59,12 +59,18 @@ function cli_getCopyrightInfo {
59
59
date +%Y
60
60
;;
61
61
62
- '--copyright-holder' | * )
62
+ '--copyright-holder' )
63
63
64
64
# Output default copyright holder.
65
65
echo "The CentOS Project"
66
66
;;
67
67
68
+ '--copyright' | * )
69
+ local YEAR=$(cli_getCopyrightInfo '--copyright-year')
70
+ local HOLDER=$(cli_getCopyrightInfo '--copyright-holder')
71
+ echo "Copyright © $YEAR $HOLDER"
72
+ ;;
73
+
68
74
esac
69
75
70
76
}