Hi there,

having mac ports on my older Mac with docbook 4.5 support installed, I could 
adjust the Linux script
for the Mac (in essence the copy command is different) and arrived at the 
following timings for
creating the fo files for the "rexxpg" and "rexxref" books:

    wu114217:orx.docs rony$ sh doc2fo-mac.sh
    rexxpg ...
    Making portrait pages on A4 paper (210mmx297mm)

    real    0m2.803s
    user    0m2.676s
    sys    0m0.094s
    /Users/rony/dev/oorexx_allura/docs/trunk/rexxpg/en-US/Common_Content
    rexxref ...
    Making portrait pages on A4 paper (210mmx297mm)

    real    0m37.364s
    user    0m36.936s
    sys    0m0.299s

So also in this case no net lookups take place.

The Mac port of xsltproc gets stored in the /opt/local tree and knows that its 
default location for
the catalog file is at /opt/local/etc/xml/. The "catalog" file there consists 
of nextCatalog
elements that point to the catalog files of the different docbook versions.

---rony

P.S.: The Mac version of the script "doc2fo-mac.sh":

    #!/bin/sh
    # Mac version (cp command is different)
    DOCPATH=~/dev/oorexx_allura/docs/trunk
    COMMON_SOURCE_SPEC=${DOCPATH}/oorexx/en-US/
    # STRINGPARAM=--stringparam use.extensions 0


    WHICHDOC=rexxpg
    TMPPATH=${DOCPATH}/${WHICHDOC}/en-US
    COMMON_TARGET=${TMPPATH}/Common_Content
    mkdir $COMMON_TARGET
    cp -R ${COMMON_SOURCE_SPEC} ${COMMON_TARGET} 
    echo $WHICHDOC ...
    time xsltproc --xinclude --output ${WHICHDOC}.fo ${STRINGPARAM}  pdf.xsl 
${TMPPATH}/${WHICHDOC}.xml
    echo $COMMON_TARGET
    rm -rf ${COMMON_TARGET}

    WHICHDOC=rexxref
    TMPPATH=${DOCPATH}/${WHICHDOC}/en-US
    COMMON_TARGET=${TMPPATH}/Common_Content
    mkdir $COMMON_TARGET
    cp -R ${COMMON_SOURCE_SPEC} ${COMMON_TARGET} 
    echo $WHICHDOC ...
    time xsltproc --xinclude --output ${WHICHDOC}.fo ${STRINGPARAM}  pdf.xsl 
${TMPPATH}/${WHICHDOC}.xml
    echo $COMMON_TARGET
    rm -rf ${COMMON_TARGET}



_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to