| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function render { |
| |
| local ACTIONNAM='' |
| local ACTIONVAL='' |
| |
| |
| |
| |
| local FLAG_RELEASEVER='' |
| |
| |
| |
| |
| |
| local FLAG_BASEARCH='' |
| |
| |
| |
| |
| local FLAG_THEME_MODEL='Default' |
| |
| |
| |
| |
| local FLAG_CONVERT='' |
| |
| |
| |
| |
| local FLAG_ROTATE='' |
| |
| |
| |
| |
| local FLAG_RESIZE='' |
| |
| |
| |
| |
| local FLAG_GROUPED_BY='' |
| |
| |
| render_getArguments |
| |
| |
| |
| |
| eval set -- "$ARGUMENTS" |
| |
| |
| |
| |
| ACTIONNAM="${FUNCNAME}_doBaseActions" |
| |
| |
| |
| for ACTIONVAL in "$@";do |
| |
| |
| |
| |
| cli_checkRepoDirSource |
| |
| |
| |
| |
| |
| if [[ ! $ACTIONVAL =~ "^$(cli_getRepoTLDir)/(Identity/Images|$(cli_getPathComponent '--theme-pattern'))" ]];then |
| cli_printMessage "`gettext "The path provided doesn't support rendition."`" 'AsErrorLine' |
| cli_printMessage "${FUNCDIRNAM}" 'AsToKnowMoreLine' |
| fi |
| |
| # Syncronize changes between repository and working copy. At |
| # this point, changes in the repository are merged in the |
| # working copy and changes in the working copy committed up to |
| # repository. |
| cli_syncroRepoChanges |
| |
| # Execute action name. |
| if [[ $ACTIONNAM =~ "^${FUNCNAM}_[A-Za-z]+$" ]];then |
| eval $ACTIONNAM |
| else |
| cli_printMessage "`gettext "A valid action is required."`" 'AsErrorLine' |
| cli_printMessage "${FUNCDIRNAM}" 'AsToKnowMoreLine' |
| fi |
| |
| # Commit changes from working copy to central repository only. |
| # At this point, changes in the repository are not merged in |
| # the working copy, but chages in the working copy do are |
| # committed up to repository. |
| cli_commitRepoChanges |
| |
| done |
| |
| } |
| |