| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function docbook_convertToXhtml { |
| |
| local -a STYLE_TEMPLATE |
| local -a STYLE_INSTANCE |
| local STYLE_INSTANCE_FINAL='' |
| |
| |
| if [[ -f ${FILE}.xhtml ]];then |
| cli_printMessage "${FILE}.xhtml" --as-updating-line |
| else |
| cli_printMessage "${FILE}.xhtml" --as-creating-line |
| fi |
| |
| |
| |
| |
| local SRC=${INSTANCE} |
| |
| |
| |
| |
| local DST="${FILE}.xhtml" |
| |
| |
| docbook_prepareStyles $(cli_getFilesList \ |
| ${DOCBOOK_XSL} --pattern='^.*/docbook2xhtml-(single|common)\.xsl$') |
| |
| |
| xsltproc --output ${DST} ${STYLE_INSTANCE_FINAL} ${SRC} &> /dev/null |
| |
| |
| |
| if [[ -a $(dirname ${DST})/Css ]];then |
| rm $(dirname ${DST})/Css |
| fi |
| if [[ -a $(dirname ${DST})/Images ]];then |
| rm $(dirname ${DST})/Images |
| fi |
| |
| |
| |
| |
| ln -fs ${TCAR_WORKDIR}/trunk/Identity/Webenv/Themes/Default/Docbook/1.69.1/Css $(dirname $DST)/Css |
| ln -fs ${TCAR_WORKDIR}/trunk/Identity/Images/Webenv $(dirname $DST)/Images |
| |
| |
| rm ${STYLE_INSTANCE[*]} |
| |
| } |