Changeset 5047

Show
Ignore:
Timestamp:
06/26/09 11:54:21 (14 months ago)
Author:
pmoura
Message:

The "lgt2*.sh" documentation shell scripts have been updated to ignore XML files that are not XML documenting files generated by the Logtalk compiler.

Location:
trunk
Files:
8 modified

Legend:

Unmodified
Added
Removed
  • trunk/compiler/logtalk.pl

    r5045 r5047  
    1479114791'$lgt_write_xml_relations'(Stream) :- 
    1479214792    '$lgt_pp_rclause_'('$lgt_implements_protocol_'(Entity, Ptc, Scope)), 
    14793     '$lgt_write_xml_relation'(Stream, Entity, Ptc, implements, Scope), 
     14793        '$lgt_write_xml_relation'(Stream, Entity, Ptc, implements, Scope), 
    1479414794    fail. 
    1479514795 
    1479614796'$lgt_write_xml_relations'(Stream) :- 
    1479714797    '$lgt_pp_rclause_'('$lgt_imports_category_'(Entity, Ctg, Scope)), 
    14798     '$lgt_write_xml_relation'(Stream, Entity, Ctg, imports, Scope), 
     14798        '$lgt_write_xml_relation'(Stream, Entity, Ctg, imports, Scope), 
    1479914799    fail. 
    1480014800 
    1480114801'$lgt_write_xml_relations'(Stream) :- 
    1480214802    '$lgt_pp_rclause_'('$lgt_extends_object_'(Entity, Parent, Scope)), 
    14803     '$lgt_write_xml_relation'(Stream, Entity, Parent, extends, Scope), 
     14803        '$lgt_write_xml_relation'(Stream, Entity, Parent, extends, Scope), 
    1480414804    fail. 
    1480514805 
    1480614806'$lgt_write_xml_relations'(Stream) :- 
    1480714807    '$lgt_pp_rclause_'('$lgt_instantiates_class_'(Entity, Class, Scope)), 
    14808     '$lgt_write_xml_relation'(Stream, Entity, Class, instantiates, Scope), 
     14808        '$lgt_write_xml_relation'(Stream, Entity, Class, instantiates, Scope), 
    1480914809    fail. 
    1481014810 
    1481114811'$lgt_write_xml_relations'(Stream) :- 
    1481214812    '$lgt_pp_rclause_'('$lgt_specializes_class_'(Entity, Superclass, Scope)), 
    14813     '$lgt_write_xml_relation'(Stream, Entity, Superclass, specializes, Scope), 
     14813        '$lgt_write_xml_relation'(Stream, Entity, Superclass, specializes, Scope), 
    1481414814    fail. 
    1481514815 
    1481614816'$lgt_write_xml_relations'(Stream) :- 
    1481714817    '$lgt_pp_rclause_'('$lgt_extends_protocol_'(Entity, Ptc, Scope)), 
    14818     '$lgt_write_xml_relation'(Stream, Entity, Ptc, extends, Scope), 
     14818        '$lgt_write_xml_relation'(Stream, Entity, Ptc, extends, Scope), 
    1481914819    fail. 
    1482014820 
    1482114821'$lgt_write_xml_relations'(Stream) :- 
    1482214822    '$lgt_pp_rclause_'('$lgt_extends_category_'(Entity, Ctg, Scope)), 
    14823     '$lgt_write_xml_relation'(Stream, Entity, Ctg, extends, Scope), 
     14823        '$lgt_write_xml_relation'(Stream, Entity, Ctg, extends, Scope), 
    1482414824    fail. 
    1482514825 
     
    1483814838'$lgt_write_xml_relations'(Stream) :- 
    1483914839    '$lgt_pp_alias_'(Entity, Pred, Alias), 
    14840     functor(Pred, PFunctor, PArity), 
    14841     functor(Alias, AFunctor, AArity), 
    14842     '$lgt_write_xml_open_tag'(Stream, alias, []), 
    14843     '$lgt_write_xml_cdata_element'(Stream, name, [], Entity), 
    14844     '$lgt_write_xml_cdata_element'(Stream, original, [], PFunctor/PArity), 
    14845     '$lgt_write_xml_cdata_element'(Stream, alternative, [], AFunctor/AArity), 
    14846     '$lgt_write_xml_close_tag'(Stream, alias), 
     14840        Entity =.. [_| Args],               % take care of parametric entities 
     14841        '$lgt_vars_to_underscore'(Args), 
     14842        functor(Pred, PFunctor, PArity), 
     14843        functor(Alias, AFunctor, AArity), 
     14844        '$lgt_write_xml_open_tag'(Stream, alias, []), 
     14845        '$lgt_write_xml_cdata_element'(Stream, name, [], Entity), 
     14846        '$lgt_write_xml_cdata_element'(Stream, original, [], PFunctor/PArity), 
     14847        '$lgt_write_xml_cdata_element'(Stream, alternative, [], AFunctor/AArity), 
     14848        '$lgt_write_xml_close_tag'(Stream, alias), 
    1484714849    fail. 
    1484814850 
  • trunk/RELEASE_NOTES.txt

    r5045 r5047  
    8585    Improved documentation and examples of using the term and goal expansion 
    8686    mechanisms. 
     87 
     88    The "lgt2*.sh" documentation shell scripts have been updated to ignore 
     89    XML files that are not XML documenting files generated by the Logtalk 
     90    compiler. 
    8791 
    8892 
  • trunk/xml/lgt2html.sh

    r5003 r5047  
    122122    echo "<ul>" >> "$index_file" 
    123123 
    124     for file in *.xml; do 
     124    for file in `grep -l "<logtalk>" *.xml`; do 
    125125        name="`expr "$file" : '\(.*\)\.[^./]*$' \| "$file"`" 
    126126        entity=${name%_*} 
     
    211211fi 
    212212 
    213 if [ `(ls *.xml | wc -l) 2> /dev/null` -gt 0 ] ; then 
     213if [ `(grep -l "<logtalk>" *.xml | wc -l) 2> /dev/null` -gt 0 ] ; then 
    214214    echo 
    215215    echo "converting XML files..." 
    216     for file in *.xml; do 
     216    for file in `grep -l "<logtalk>" *.xml`; do 
    217217        echo "  converting $file" 
    218218        name="`expr "$file" : '\(.*\)\.[^./]*$' \| "$file"`" 
  • trunk/xml/lgt2pdf.sh

    r5003 r5047  
    146146fi 
    147147 
    148 if [ `(ls *.xml | wc -l) 2> /dev/null` -gt 0 ] ; then 
     148if [ `(grep -l "<logtalk>" *.xml | wc -l) 2> /dev/null` -gt 0 ] ; then 
    149149    echo 
    150150    echo "converting XML files to PDF..." 
    151     for file in *.xml; do 
     151    for file in `grep -l "<logtalk>" *.xml`; do 
    152152        echo "  converting $file" 
    153153        name="`expr "$file" : '\(.*\)\.[^./]*$' \| "$file"`" 
  • trunk/xml/lgt2txt.sh

    r5003 r5047  
    125125fi 
    126126 
    127 if [ `(ls *.xml | wc -l) 2> /dev/null` -gt 0 ] ; then 
     127if [ `(grep -l "<logtalk>" *.xml | wc -l) 2> /dev/null` -gt 0 ] ; then 
    128128    echo 
    129129    echo "converting XML files to text files..." 
    130     for file in *.xml; do 
     130    for file in `grep -l "<logtalk>" *.xml`; do 
    131131        echo "  converting $file" 
    132132        name="`expr "$file" : '\(.*\)\.[^./]*$' \| "$file"`" 
  • trunk/xml/lgt2xml.sh

    r5003 r5047  
    110110    echo "<ul>" >> "$index_file" 
    111111 
    112     for file in *.xml; do 
     112    for file in `grep -l "<logtalk>" *.xml`; do 
    113113        name="`expr "$file" : '\(.*\)\.[^./]*$' \| "$file"`" 
    114114        entity=${name%_*} 
  • trunk/xml/lgtpdf.xsl

    r5003 r5047  
    371371            font-size="9pt" 
    372372            margin-left="10mm"> 
    373         <fo:inline ><xsl:value-of select="name" /><xsl:text> </xsl:text><xsl:value-of select="original" /></fo:inline> 
     373        <fo:inline font-family="monospace"><xsl:value-of select="name" /><xsl:text> </xsl:text><xsl:value-of select="original" /></fo:inline> 
    374374        <fo:inline font-family="serif" font-style="italic"> aka </fo:inline> 
    375375        <fo:inline font-family="monospace"><xsl:value-of select="alternative" /></fo:inline> 
  • trunk/xml/lgttxt.xsl

    r5003 r5047  
    103103            <xsl:if test="imports"> 
    104104                <xsl:text>imports:</xsl:text><xsl:value-of select="$nl" /> 
    105                     <xsl:apply-templates select="imports" /> 
     105                <xsl:apply-templates select="imports" /> 
    106106            </xsl:if> 
    107107            <xsl:if test="extends"> 
     
    110110            </xsl:if> 
    111111            <xsl:if test="instantiates"> 
    112             <xsl:text>instantiates:</xsl:text><xsl:value-of select="$nl" /> 
     112                <xsl:text>instantiates:</xsl:text><xsl:value-of select="$nl" /> 
    113113                <xsl:apply-templates select="instantiates" /> 
    114114            </xsl:if> 
    115115            <xsl:if test="specializes"> 
    116             <xsl:text>specializes:</xsl:text><xsl:value-of select="$nl" /> 
     116                <xsl:text>specializes:</xsl:text><xsl:value-of select="$nl" /> 
    117117                <xsl:apply-templates select="specializes" /> 
    118118            </xsl:if> 
    119119            <xsl:if test="uses"> 
    120             <xsl:text>uses:</xsl:text><xsl:value-of select="$nl" /> 
     120                <xsl:text>uses:</xsl:text><xsl:value-of select="$nl" /> 
    121121                <xsl:apply-templates select="uses" /> 
    122122            </xsl:if> 
    123123            <xsl:if test="calls"> 
    124             <xsl:text>calls:</xsl:text><xsl:value-of select="$nl" /> 
     124                <xsl:text>calls:</xsl:text><xsl:value-of select="$nl" /> 
    125125                <xsl:apply-templates select="calls" /> 
    126126            </xsl:if> 
    127127            <xsl:if test="alias"> 
    128             <dt class ="key">aliases:</dt> 
     128                <xsl:text>aliases:</xsl:text><xsl:value-of select="$nl" /> 
    129129                <xsl:apply-templates select="alias" /> 
    130130            </xsl:if>