Changeset bce3ed57
- Timestamp:
- 01/26/2006 08:07:18 PM (18 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.2, 6.2.0, 6.2.0-rc1, 6.2.0-rc2, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- a2fe5b7f
- Parents:
- d89b3d0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/patcheslist.xsl
rd89b3d0 rbce3ed57 4 4 %general-entities; 5 5 ]> 6 7 <!-- 8 This stylesheet creates a script to copy the patches referenced 9 in the BLFS book from the patches repository to the blfs 10 download area. It is very specific to the installation on 11 the home server. 12 --> 6 13 7 14 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" … … 17 24 <xsl:template match="/"> 18 25 <xsl:text>#! /bin/bash

</xsl:text> 26 <xsl:text>function copy 27 { 28 cp $1 $2 >>copyerrs 2>&1 29 }

</xsl:text> 19 30 <!-- Create dest.dir if it don't exist --> 20 <xsl:text> 31 <xsl:text>mkdir -p </xsl:text> 21 32 <xsl:value-of select="$dest.dir"/> 22 33 <xsl:text> &&
</xsl:text> 23 <xsl:text> 34 <xsl:text>cd </xsl:text> 24 35 <xsl:value-of select="$dest.dir"/> 25 36 <xsl:text> &&

</xsl:text> 26 <!-- Touch a dummy patch to prevent fails if dest dir is empty, then remove old patches-->27 <xsl:text> touch dummy.patch &&
 rm -f *.patch&&

</xsl:text>37 <!-- Remove old patches and possible list of missing patches--> 38 <xsl:text>rm -f *.patch copyerrs &&

</xsl:text> 28 39 <xsl:apply-templates/> 29 <!-- Ensure correct owneship --> 30 <xsl:text>
 chgrp lfswww *.patch &&
</xsl:text> 31 <xsl:text>
 exit
</xsl:text> 40 <!-- Ensure correct ownership --> 41 <xsl:text>
chgrp lfswww *.patch &&
</xsl:text> 42 <xsl:text>if [ `wc -l copyerrs|sed 's/ *//' |cut -f1 -d' '` -gt 0 ]; then 43 mail -s "Missing BLFS patches" blfs-book@linuxfromscratch.org < copyerrs 44 fi</xsl:text> 45 <xsl:text>
exit
</xsl:text> 32 46 </xsl:template> 33 47 … … 39 53 and not(ancestor-or-self::*/@condition = 'pdf')"> 40 54 <xsl:variable name="patch.name" select="substring-after(@url, '&patch-root;')"/> 41 <xsl:text> cp/home/httpd/www.linuxfromscratch.org/patches/downloads</xsl:text>55 <xsl:text>copy /home/httpd/www.linuxfromscratch.org/patches/downloads</xsl:text> 42 56 <xsl:choose> 43 57 <!-- cdparanoia -->
Note:
See TracChangeset
for help on using the changeset viewer.