Changeset bce3ed57


Ignore:
Timestamp:
01/26/2006 08:07:18 PM (16 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.1, 11.0, 11.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, krejzi/svn, lazarus, nosym, perl-modules, qt5new, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/test-20220226
Children:
a2fe5b7f
Parents:
d89b3d0
Message:

Update to xml to create copy patches script

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@5598 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stylesheets/patcheslist.xsl

    rd89b3d0 rbce3ed57  
    44  %general-entities;
    55]>
     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-->
    613
    714<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     
    1724  <xsl:template match="/">
    1825    <xsl:text>#! /bin/bash&#x0a;&#x0a;</xsl:text>
     26    <xsl:text>function copy
     27{
     28   cp $1 $2 >>copyerrs 2>&amp;1
     29}&#x0a;&#x0a;</xsl:text>
    1930      <!-- Create dest.dir if it don't exist -->
    20     <xsl:text>  mkdir -p </xsl:text>
     31    <xsl:text>mkdir -p </xsl:text>
    2132    <xsl:value-of select="$dest.dir"/>
    2233    <xsl:text> &amp;&amp;&#x0a;</xsl:text>
    23     <xsl:text>  cd </xsl:text>
     34    <xsl:text>cd </xsl:text>
    2435    <xsl:value-of select="$dest.dir"/>
    2536    <xsl:text> &amp;&amp;&#x0a;&#x0a;</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 &amp;&amp;&#x0a;  rm -f *.patch &amp;&amp;&#x0a;&#x0a;</xsl:text>
     37      <!-- Remove old patches and possible list of missing patches-->
     38    <xsl:text>rm -f *.patch copyerrs &amp;&amp;&#x0a;&#x0a;</xsl:text>
    2839    <xsl:apply-templates/>
    29       <!-- Ensure correct owneship -->
    30     <xsl:text>&#x0a;  chgrp lfswww *.patch &amp;&amp;&#x0a;</xsl:text>
    31     <xsl:text>&#x0a;  exit&#x0a;</xsl:text>
     40      <!-- Ensure correct ownership -->
     41    <xsl:text>&#x0a;chgrp lfswww *.patch &amp;&amp;&#x0a;</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 &lt; copyerrs
     44fi</xsl:text>
     45    <xsl:text>&#x0a;exit&#x0a;</xsl:text>
    3246  </xsl:template>
    3347
     
    3953            and not(ancestor-or-self::*/@condition = 'pdf')">
    4054      <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>
    4256      <xsl:choose>
    4357          <!-- cdparanoia -->
Note: See TracChangeset for help on using the changeset viewer.