From 983cdb5537d4670ba53b468ad02eb81d264d7bf2 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Sep 13 2012 18:32:53 +0000 Subject: Update `Functions/Prepare/prepare_updateManuals.sh' file. --- diff --git a/Scripts/Bash/Functions/Prepare/prepare_updateManuals.sh b/Scripts/Bash/Functions/Prepare/prepare_updateManuals.sh index 09f1645..5b49f51 100755 --- a/Scripts/Bash/Functions/Prepare/prepare_updateManuals.sh +++ b/Scripts/Bash/Functions/Prepare/prepare_updateManuals.sh @@ -27,45 +27,8 @@ function prepare_updateManuals { - local RELEASE=$(cat /etc/redhat-release | gawk '{ print $3 }') - - # Define base directory used by documentation manuals. This is the - # top level directory where all documentation manuals are stored - # in the repository. - local MANUALS=Documentation/Manuals - - # Define key documentation manuals. - local MANUALS_NAMES="Tcar-ug Tcar-fs" - - # Verify related design models, images, and common stylesheets - # used by documentation manuals. - for DIR in $(echo "Identity/Images/Manuals - Identity/Models/Manuals - Identity/Webenv/Themes - 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 key documentation manuals. - ${CLI_BASEDIR}/${CLI_NAME}.sh render trunk/Documentation/Manuals/Tcar-ug --dont-commit-changes --filter=tcar-ug - ${CLI_BASEDIR}/${CLI_NAME}.sh help trunk/Documentation/Manuals/Tcar-fs --update --dont-commit-changes + ${CLI_BASEDIR}/${CLI_NAME}.sh render trunk/Documentation/Manuals/Docbook/Tcar-ug --dont-commit-changes + ${CLI_BASEDIR}/${CLI_NAME}.sh help trunk/Documentation/Manuals/Texinfo/Tcar-fs --update --dont-commit-changes }