Changeset 9205


Ignore:
Timestamp:
Apr 20, 2008, 10:10:43 AM (11 years ago)
Author:
gb
Message:

include svn rev, fix (?) complaints about minute-in-hour usage, ignore build byproducts

Location:
trunk/source/doc/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/doc/src

    • Property svn:ignore set to
      build*
      *html
  • trunk/source/doc/src/Makefile.fedora

    r8574 r9205  
    6464XSLTPROCVERSION = $(shell $(XSLTPROC) --version | head -n 1)
    6565
     66# Try to determine the svn revishion
     67SVNREV = $(shell /usr/bin/svnversion)
     68
     69
    6670.PHONY: all clean distclean
    6771
  • trunk/source/doc/src/Makefile.macports

    r8574 r9205  
    1212
    1313XSLTPROC = /usr/bin/xsltproc
     14
     15# Try to determine the svn revishion
     16SVNREV = $(shell /usr/bin/svnversion)
    1417
    1518
     
    7376
    7477install: $(HTMLFILES) distclean
    75         cp $(HTMLFILES) ../HTML
     78        cp $(HTMLFILES) ../
    7679
    7780$(TEMP):
  • trunk/source/doc/src/makehtml

    r8574 r9205  
    88                        $(if $(findstring Doc, $(@D)), 0, 1) \
    99                --stringparam xsltproc.version "$(XSLTPROCVERSION)." \
     10                --stringparam svnrev "$(SVNREV)"\
    1011                $(EXTRAPARAMS) \
    1112                $(STYLESHEET) $<
  • trunk/source/doc/src/xsl/footer.xsl

    r8555 r9205  
    2323      <xsl:variable name="now" select="date:date-time()"/>
    2424      <xsl:text>This document was last modified at </xsl:text>
    25       <xsl:choose>
    26         <xsl:when test="date:hour-in-day($now) = 0">
    27           <xsl:text>12:</xsl:text>
    28           <xsl:number value="date:minute-in-hour($now)" format="01"/>
    29           <xsl:text> AM</xsl:text>
    30         </xsl:when>
    31         <xsl:when test="date:hour-in-day($now) &lt; 12">
    32           <xsl:value-of select="date:hour-in-day($now)"/>
    33           <xsl:text>:</xsl:text>
    34           <xsl:number value="date:minute-in-hour($now)" format="01"/>
    35           <xsl:text> AM</xsl:text>
    36         </xsl:when>
    37         <xsl:when test="date:hour-in-day($now) = 12">
    38           <xsl:text>12:</xsl:text>
    39           <xsl:number value="date:minute-in-hour($now)" format="01"/>
    40           <xsl:text> PM</xsl:text>
    41         </xsl:when>
    42         <xsl:otherwise>
    43           <xsl:value-of select="date:hour-in-day($now) - 12"/>
    44           <xsl:text>:</xsl:text>
    45           <xsl:number value="date:minute-in-hour($now)" format="01"/>
    46           <xsl:text> PM</xsl:text>
    47         </xsl:otherwise>
    48       </xsl:choose>
     25      <xsl:value-of select="date:hour-in-day($now)"/>
     26      <xsl:text>:</xsl:text>
     27      <xsl:value-of select="date:minute-in-hour($now)"/>     
    4928      <xsl:text> on </xsl:text>
    5029      <xsl:value-of select="date:month-name($now)"/>
     
    5938      <xsl:text> of the Norman Walsh Docbook stylesheets.</xsl:text>
    6039      <br/>
     40      <xsl:text>Built from subversion rev </xsl:text>
     41      <xsl:value-of select="$svnrev"/>
     42      <br/>
    6143      <xsl:value-of select="$xsltproc.version"/>
    6244    </p>
Note: See TracChangeset for help on using the changeset viewer.