Ignore:
Timestamp:
May 10, 2006, 4:36:57 PM (18 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
61d6a26
Parents:
bd709ec
Message:

r3374@server (orig r1557): manuel | 2006-05-10 15:51:37 -0700
Updated stylesheets to match current LFS features.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/stylesheets/patcheslist.xsl

    rbd709ec r8a84f0d  
    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.