Changeset 3bf7cb6 for stylesheets/patcheslist.xsl
- Timestamp:
- 02/14/2006 08:18:58 PM (18 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/patcheslist.xsl
rddd5542 r3bf7cb6 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.