Changeset 8a84f0d for BOOK/stylesheets/patcheslist.xsl
- Timestamp:
 - May 10, 2006, 4:36:57 PM (19 years ago)
 - Branches:
 - clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
 - Children:
 - 61d6a26
 - Parents:
 - bd709ec
 - File:
 - 
      
- 1 edited
 
- 
          
  BOOK/stylesheets/patcheslist.xsl (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
BOOK/stylesheets/patcheslist.xsl
rbd709ec r8a84f0d 16 16 17 17 <xsl:template match="/"> 18 <xsl:text>#! /bin/bash

</xsl:text> 19 <xsl:text> umask 002

</xsl:text> 18 <xsl:text>#! /bin/bash 19 20 function copy 21 { 22 cp $1 $2 >>copyerrs 2>&1 23 } 24 25 umask 002 

</xsl:text> 26 20 27 <!-- 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> 22 29 <xsl:value-of select="$dest.dir"/> 23 30 <xsl:text> &&
</xsl:text> 24 <xsl:text> cd </xsl:text>31 <xsl:text>cd </xsl:text> 25 32 <xsl:value-of select="$dest.dir"/> 26 33 <xsl:text> &&

</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 &&
 rm -f *.patch &&

</xsl:text>34 <!-- Remove old patches --> 35 <xsl:text>rm -f *.patch copyerrs && 

</xsl:text> 29 36 <xsl:apply-templates/> 30 37 <!-- Ensure correct owneship --> 31 <xsl:text>
 chgrp lfswww *.patch &&
</xsl:text> 32 <xsl:text>
 exit
</xsl:text> 38 <xsl:text>
chgrp lfswww *.patch &&
</xsl:text> 39 <xsl:text> 40 if [ `wc -l copyerrs | sed 's/ *//' | cut -f1 -d' '` -gt 0 ]; then 41 mail -s "Missing LFS patches" lfs-book@linuxfromscratch.org < copyerrs 42 fi

</xsl:text> 43 44 <xsl:text>exit
</xsl:text> 33 45 </xsl:template> 34 46 … … 47 59 <xsl:value-of select="$cut"/> 48 60 </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> 50 62 <xsl:value-of select="substring-before($patch.name2, '-0')"/> 51 63 <xsl:text>/</xsl:text>  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  