From c2b50771ce15826af7e6033d487ef5e51488de4d Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Sep 15 2012 20:28:45 +0000 Subject: Update `Functions/Render/Docbook/docbook_convertToXhtml.sh' file. --- diff --git a/Scripts/Bash/Functions/Render/Docbook/docbook_convertToXhtml.sh b/Scripts/Bash/Functions/Render/Docbook/docbook_convertToXhtml.sh index c2c2574..4a36603 100755 --- a/Scripts/Bash/Functions/Render/Docbook/docbook_convertToXhtml.sh +++ b/Scripts/Bash/Functions/Render/Docbook/docbook_convertToXhtml.sh @@ -56,12 +56,20 @@ function docbook_convertToXhtml { # Transform DocBook XML to XHTML supressing all stderr output. xsltproc --output ${DST} ${STYLE_INSTANCE_FINAL} ${SRC} &> /dev/null + # Remove previous links first to prevent a recursive creation of + # links. + if [[ -a $(dirname ${DST})/Css ]];then + rm $(dirname ${DST})/Css + fi + if [[ -a $(dirname ${DST})/Images ]];then + rm $(dirname ${DST})/Images + fi + # Create `css' and `images' directories. In order to save disk # space, these directories are linked (symbolically) to their - # respective locations inside the working copy. Be sure to remove - # previous links first to prevent a recursive creation of links. - ln -sf ${TCAR_WORKDIR}/trunk/Identity/Webenv/Themes/Default/Docbook/1.69.1/Css $(dirname $DST)/Css - ln -sf ${TCAR_WORKDIR}/trunk/Identity/Images/Webenv $(dirname $DST)/Images + # respective locations inside the working copy. + 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 # Remove XSL instance files. rm ${STYLE_INSTANCE[*]}