Ignore:
Timestamp:
02/14/2006 08:18:58 PM (18 years ago)
Author:
Matthew Burgess <matthew@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
e178a8e
Parents:
ddd5542
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/trunk/BOOK@7373 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stylesheets/patcheslist.xsl

    rddd5542 r3bf7cb6  
    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.