| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function docbook_convertToXhtmlChunk { |
| |
| local -a STYLE_TEMPLATE |
| local -a STYLE_INSTANCE |
| local STYLE_INSTANCE_FINAL='' |
| |
| |
| |
| |
| local DST="${FILE}-xhtml/" |
| |
| |
| |
| if [[ -d ${DST} ]];then |
| rm -r "${DST}" |
| fi |
| mkdir ${DST} |
| |
| |
| cli_printMessage "${FILE}-xhtml" --as-creating-line |
| |
| |
| |
| |
| local SRC=${INSTANCE} |
| |
| |
| docbook_prepareStyles $(cli_getFilesList \ |
| ${DOCBOOK_STYLES_DIR} --pattern='.*docbook2xhtml-(chunks|common)\.xsl') |
| |
| |
| xsltproc --output ${DST} ${STYLE_INSTANCE_FINAL} ${SRC} &> /dev/null |
| |
| |
| |
| |
| ln -s ${TCAR_WORKDIR}/trunk/Identity/Webenv/Themes/Default/Docbook-style-xsl/1.69.1/ ${DST}/css |
| ln -s ${TCAR_WORKDIR}/trunk/Identity/Images/Webenv ${DST}/images |
| |
| |
| |
| |
| |
| |
| |
| ln -s ${TCAR_WORKDIR}/trunk/Identity/Images/Manuals ${DST}/images-manuals |
| |
| |
| rm ${STYLE_INSTANCE[*]} |
| |
| } |