diff --git a/Automation/Modules/Render/Modules/Files/Modules/Asciidoc/Modules/Article/article.sh b/Automation/Modules/Render/Modules/Files/Modules/Asciidoc/Modules/Article/article.sh index d8a96c9..cddf9e5 100755 --- a/Automation/Modules/Render/Modules/Files/Modules/Asciidoc/Modules/Article/article.sh +++ b/Automation/Modules/Render/Modules/Files/Modules/Asciidoc/Modules/Article/article.sh @@ -1,7 +1,7 @@ #!/bin/bash ###################################################################### # -# manpage.sh -- This module produces docbook documents using article +# article.sh -- This module produces docbook documents using article # document type. # # Written by: diff --git a/Automation/Modules/Render/Modules/Files/Modules/Asciidoc/asciidoc_setXhtmlRendition.sh b/Automation/Modules/Render/Modules/Files/Modules/Asciidoc/asciidoc_setXhtmlRendition.sh index a130649..bbe02e8 100755 --- a/Automation/Modules/Render/Modules/Files/Modules/Asciidoc/asciidoc_setXhtmlRendition.sh +++ b/Automation/Modules/Render/Modules/Files/Modules/Asciidoc/asciidoc_setXhtmlRendition.sh @@ -70,6 +70,4 @@ function asciidoc_setXhtmlRendition { ${DOCBOOK_XSL}/docbook2xhtml-${RENDER_PAGE}.xsl ${TARGET_INSTANCES[${COUNTER}]} done - # Tuneup markup of final html files. - tcar_setModuleEnvironment -m tuneup -t parent -g $(dirname ${RENDER_TARGET}) } diff --git a/Automation/Modules/Render/Modules/Files/files.sh b/Automation/Modules/Render/Modules/Files/files.sh index eda650f..14a5f29 100755 --- a/Automation/Modules/Render/Modules/Files/files.sh +++ b/Automation/Modules/Render/Modules/Files/files.sh @@ -127,4 +127,7 @@ function files { unset COUNTER unset SECTIONS + # Tuneup final files. + tcar_setModuleEnvironment -m 'tuneup' -t 'parent' -g $(dirname ${RENDER_TARGET}) + } diff --git a/Automation/Modules/Render/render_setLocalizedXml.sh b/Automation/Modules/Render/render_setLocalizedXml.sh index f6b6e8c..8420583 100755 --- a/Automation/Modules/Render/render_setLocalizedXml.sh +++ b/Automation/Modules/Render/render_setLocalizedXml.sh @@ -42,12 +42,17 @@ function render_setLocalizedXml { # Verify source instance and the no-locale flag. When source # instance already exists, don't create a new file for it. - # Instead, link it using a symbolic link. + # Instead, link it using a symbolic link. Be careful, such + # behavior only applies when the source file has no locale. + # Otherwise, the source file needs to go through the translation + # process inevitably. if [[ -f ${SOURCE} ]];then if [[ ${SOURCE} =~ "^${TCAR_SCRIPT_TEMPDIR}" ]];then - tcar_checkFiles -i 'text/xml' ${SOURCE} - /bin/ln -s ${SOURCE} ${TARGET} - return + if [[ ${RENDER_FLAG_NO_LOCALE} == 'true' ]];then + tcar_checkFiles -i 'text/xml' ${SOURCE} + /bin/ln -s ${SOURCE} ${TARGET} + return + fi elif [[ ${RENDER_FLAG_NO_LOCALE} == 'true' ]];then tcar_printFile ${SOURCE} > ${TARGET} tcar_checkFiles -i 'text/xml' ${TARGET}