| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function prepare_updateManuals { |
| |
| local RELEASE=$(cat /etc/redhat-release | gawk '{ print $3 }') |
| |
| |
| |
| |
| local MANUALS=Manuals |
| |
| |
| local MANUALS_NAMES="Tcar-ug Tcar-fs" |
| |
| |
| |
| for DIR in $(echo "Identity/Images/Manuals |
| Identity/Models/Manuals |
| Identity/Webenv/Css |
| Identity/Models/Webenv |
| Identity/Images/Webenv");do |
| MANUALS_ABSPATH=$(cli_getRepoTLDir)/${DIR} |
| if [[ ! -d $MANUALS_ABSPATH ]];then |
| cli_printMessage "`eval_gettext "The directory \\\"\\\$MANUALS_ABSPATH\\\" doesn't exist."`" |
| cli_printMessage "`gettext "Do you want to download a working copy for it now?"`" --as-yesornorequest-line |
| mkdir -p $MANUALS_ABSPATH |
| svn co $(cli_printUrl --projects-artwork)trunk/${DIR} ${MANUALS_ABSPATH} |
| fi |
| done |
| |
| # Verify directory structure used by documentation manuals. |
| for MANUALS_NAME in $MANUALS_NAMES;do |
| MANUALS_ABSPATH=$(cli_getRepoTLDir)/${MANUALS}/${MANUALS_NAME} |
| if [[ ! -d $MANUALS_ABSPATH ]];then |
| cli_printMessage "`eval_gettext "The directory \\\"\\\$MANUALS_ABSPATH\\\" doesn't exist."`" |
| cli_printMessage "`gettext "Do you want to download a working copy for it now?"`" --as-yesornorequest-line |
| mkdir -p $MANUALS_ABSPATH |
| svn co $(cli_printUrl --projects-artwork)trunk/${MANUALS}/${MANUALS_NAME} ${MANUALS_ABSPATH} |
| fi |
| done |
| |
| # Render dependent files and key documentation manuals. |
| ${CLI_BASEDIR}/${CLI_NAME}.sh render trunk/Identity/Images/Manuals --dont-commit-changes |
| ${CLI_BASEDIR}/${CLI_NAME}.sh render trunk/Identity/Images/Webenv --dont-commit-changes |
| ${CLI_BASEDIR}/${CLI_NAME}.sh render trunk/Manuals/Tcar-ug --filter="tcar-ug" --dont-commit-changes |
| ${CLI_BASEDIR}/${CLI_NAME}.sh help trunk/Manuals/Tcar-fs --update --dont-commit-changes |
| |
| } |
| |