| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function render { |
| |
| local ACTIONNAM='' |
| local ACTIONVAL='' |
| |
| |
| |
| |
| |
| local FLAG_RELEASEVER=$(cat /etc/redhat-release \ |
| | gawk '{ print $3 }') |
| |
| |
| |
| |
| |
| local FLAG_BASEARCH=$(uname -i) |
| |
| |
| |
| |
| local FLAG_THEME_MODEL='Default' |
| |
| |
| |
| |
| local FLAG_POSTRENDITION='' |
| |
| |
| |
| |
| |
| local FLAG_LASTRENDITION='' |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| local FLAG_DONT_DIRSPECIFIC='false' |
| |
| |
| |
| |
| local FLAG_WITH_BRANDS='false' |
| |
| |
| |
| |
| |
| |
| local RENDER_EXTENSIONS='svgz svg docbook conf' |
| |
| |
| |
| |
| local RENDER_FORMAT='' |
| |
| |
| |
| local RENDER_FORMAT_DIR="${CLI_FUNCDIR}/${CLI_FUNCDIRNAM}" |
| |
| |
| render_getOptions |
| |
| |
| |
| |
| eval set -- "$ARGUMENTS" |
| |
| |
| |
| for ACTIONVAL in "$@";do |
| |
| |
| |
| |
| ACTIONVAL=$(cli_checkRepoDirSource ${ACTIONVAL}) |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| if [[ $ACTIONVAL =~ "^${TCAR_WORKDIR}/Identity/Images/Themes" ]];then |
| ACTIONNAM="render_setThemes" |
| elif [[ $ACTIONVAL =~ "^${TCAR_WORKDIR}/Identity/Images/Brands" ]];then |
| ACTIONNAM="render_setBrands" |
| elif [[ $ACTIONVAL =~ "^${TCAR_WORKDIR}/Identity/Images" ]];then |
| ACTIONNAM="render_setBaseRendition" |
| elif [[ $ACTIONVAL =~ "^${TCAR_WORKDIR}/Documentation/Manuals/(Docbook|Svg)/[[:alnum:]-]+" ]];then |
| ACTIONNAM="render_setBaseRendition" |
| else |
| cli_printMessage "`gettext "The path provided doesn't support rendition."`" --as-error-line |
| fi |
| |
| # Synchronize 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_synchronizeRepoChanges "${ACTIONVAL}" |
| |
| # Execute action name. |
| ${ACTIONNAM} |
| |
| # Synchronize 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_synchronizeRepoChanges "${ACTIONVAL}" |
| |
| done |
| |
| } |
| |