Changeset ee2cd79


Ignore:
Timestamp:
02/14/2006 08:19:40 PM (18 years ago)
Author:
Matthew Burgess <matthew@…>
Children:
762094a
Parents:
c634562
Message:

Send an email to lfs-book if the patcheslist.xsl script produces errors. Thanks to Bruce Dubbs

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/udev_update/BOOK@7374 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stylesheets/patcheslist.xsl

    rc634562 ree2cd79  
    1616
    1717  <xsl:template match="/">
    18     <xsl:text>#! /bin/bash&#x0a;&#x0a;</xsl:text>
    19     <xsl:text>  umask 002&#x0a;&#x0a;</xsl:text>
     18    <xsl:text>#! /bin/bash
     19
     20function copy
     21{
     22  cp $1 $2 >>copyerrs 2>&amp;1
     23}
     24
     25umask 002 &#x0a;&#x0a;</xsl:text>
     26               
    2027      <!-- Create dest.dir if it don't exist -->
    21     <xsl:text>  install -d -m 775 -g lfswww </xsl:text>
     28    <xsl:text>install -d -m 775 -g lfswww </xsl:text>
    2229    <xsl:value-of select="$dest.dir"/>
    2330    <xsl:text> &amp;&amp;&#x0a;</xsl:text>
    24     <xsl:text>  cd </xsl:text>
     31    <xsl:text>cd </xsl:text>
    2532    <xsl:value-of select="$dest.dir"/>
    2633    <xsl:text> &amp;&amp;&#x0a;&#x0a;</xsl:text>
    27       <!-- Touch a dummy patch to prevent fails if dest dir is empty, then remove old patches -->
    28     <xsl:text>  touch dummy.patch &amp;&amp;&#x0a;  rm -f *.patch &amp;&amp;&#x0a;&#x0a;</xsl:text>
     34      <!-- Remove old patches -->
     35    <xsl:text>rm -f *.patch copyerrs &amp;&amp; &#x0a;&#x0a;</xsl:text>
    2936    <xsl:apply-templates/>
    3037      <!-- Ensure correct owneship -->
    31     <xsl:text>&#x0a;  chgrp lfswww *.patch &amp;&amp;&#x0a;</xsl:text>
    32     <xsl:text>&#x0a;  exit&#x0a;</xsl:text>
     38    <xsl:text>&#x0a;chgrp lfswww *.patch &amp;&amp;&#x0a;</xsl:text>
     39    <xsl:text>
     40if [ `wc -l copyerrs | sed 's/ *//' | cut -f1 -d' '` -gt 0 ]; then
     41  mail -s "Missing LFS patches" lfs-book@linuxfromscratch.org &lt; copyerrs
     42fi&#x0a;&#x0a;</xsl:text>
     43         
     44    <xsl:text>exit&#x0a;</xsl:text>
    3345  </xsl:template>
    3446
     
    4759        <xsl:value-of select="$cut"/>
    4860      </xsl:variable>
    49       <xsl:text>  cp /home/httpd/www.linuxfromscratch.org/patches/downloads/</xsl:text>
     61      <xsl:text>copy /home/httpd/www.linuxfromscratch.org/patches/downloads/</xsl:text>
    5062          <xsl:value-of select="substring-before($patch.name2, '-0')"/>
    5163      <xsl:text>/</xsl:text>
Note: See TracChangeset for help on using the changeset viewer.