| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function shell_getActions { |
| |
| |
| local ARGSS="" |
| |
| |
| local ARGSL="update-copyright:" |
| |
| |
| cli_doParseArguments |
| |
| |
| |
| eval set -- "$ARGUMENTS" |
| |
| |
| while true; do |
| |
| case "$1" in |
| |
| --update-copyright ) |
| |
| |
| ACTIONVAL="$2" |
| |
| |
| ACTIONNAM="${FUNCNAM}_updateCopyright" |
| |
| |
| shift 2 |
| ;; |
| |
| * ) |
| |
| break |
| esac |
| done |
| |
| |
| |
| |
| cli_checkRepoDirSource |
| |
| |
| |
| cli_syncroRepoChanges |
| |
| |
| if [[ $ACTIONNAM =~ "^${FUNCNAM}_[A-Za-z]+$" ]];then |
| eval $ACTIONNAM |
| else |
| cli_printMessage "`gettext "A valid action is required."`" 'AsErrorLine' |
| cli_printMessage "${FUNCDIRNAM}" 'AsToKnowMoreLine' |
| fi |
| |
| |
| |
| cli_commitRepoChanges |
| |
| } |