From a2cff2eeb0608413e9982836642ca4802ba479db Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Sep 11 2012 18:56:20 +0000 Subject: Update `trunk/Scripts/Bash/Function/Render' functionality to update documentation file paths. --- diff --git a/Scripts/Bash/Functions/Render/render.sh b/Scripts/Bash/Functions/Render/render.sh index 778b770..2737f5e 100755 --- a/Scripts/Bash/Functions/Render/render.sh +++ b/Scripts/Bash/Functions/Render/render.sh @@ -119,7 +119,7 @@ function render { ACTIONNAM="render_doThemeActions" elif [[ $ACTIONVAL =~ "^$(cli_getRepoTLDir)/Identity/Images" ]];then ACTIONNAM="render_doBaseActions" - elif [[ $ACTIONVAL =~ "^$(cli_getRepoTLDir)/Manuals" ]];then + elif [[ $ACTIONVAL =~ "^$(cli_getRepoTLDir)/Documentation/Manuals" ]];then ACTIONNAM="render_doBaseActions" else cli_printMessage "`gettext "The path provided doesn't support rendition."`" --as-error-line diff --git a/Scripts/Bash/Functions/Render/render_doBaseActions.sh b/Scripts/Bash/Functions/Render/render_doBaseActions.sh index d65c563..02c7533 100755 --- a/Scripts/Bash/Functions/Render/render_doBaseActions.sh +++ b/Scripts/Bash/Functions/Render/render_doBaseActions.sh @@ -139,7 +139,7 @@ function render_doBaseActions { # Define final location of translation file. TRANSLATION=$(dirname $FILE \ - | sed -r 's!trunk/(Manuals|Identity)!trunk/Locales/\1!')/$(cli_getCurrentLocale)/messages.po + | sed -r 's!trunk/(Documentation|Identity)!trunk/Locales/\1!')/$(cli_getCurrentLocale)/messages.po # Define final location of template file. TEMPLATE=${FILE} diff --git a/Scripts/Bash/Functions/Render/render_getDirOutput.sh b/Scripts/Bash/Functions/Render/render_getDirOutput.sh index 4df4ffa..c87c779 100755 --- a/Scripts/Bash/Functions/Render/render_getDirOutput.sh +++ b/Scripts/Bash/Functions/Render/render_getDirOutput.sh @@ -43,7 +43,7 @@ function render_getDirOutput { # Redefine base output directory to introduce specific information # like release number and architecture. This information is # require by directories (e.g., the `Media' directory inside - # themes and the `trunk/Manuals/Distro' directory ) whose need + # themes and the `trunk/Documentation/Manuals/Distro' directory ) whose need # this information to be passed explicitly at the command-line # through the `--releasever' and `--basearch' options. Other # directories take such information from the path they are stored @@ -53,7 +53,7 @@ function render_getDirOutput { # output path correctly at rendition time. if [[ $OUTPUT =~ "^${MOTIF_DIR}/Media$" ]];then OUTPUT=${OUTPUT}/${FLAG_RELEASEVER}/${FLAG_BASEARCH} - elif [[ $OUTPUT =~ 'trunk/Manuals/Distro$' ]];then + elif [[ $OUTPUT =~ 'trunk/Documentation/Manuals/Distro$' ]];then OUTPUT=${OUTPUT}/${FLAG_RELEASEVER} else OUTPUT=${OUTPUT}