Changeset ee2cd79 for stylesheets
- Timestamp:
- 02/14/2006 08:19:40 PM (19 years ago)
- Children:
- 762094a
- Parents:
- c634562
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/patcheslist.xsl
rc634562 ree2cd79 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> 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> 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.