Changeset a804944 for stylesheets/patcheslist.xsl
- Timestamp:
- 01/19/2024 09:39:35 PM (3 months ago)
- Branches:
- 12.1, ken/TL2024, lazarus, plabs/newcss, rahul/power-profiles-daemon, trunk, xry111/llvm18
- Children:
- ab4fdfc
- Parents:
- c8be252
- git-author:
- Pierre Labastie <pierre.labastie@…> (01/19/2024 09:34:28 PM)
- git-committer:
- Pierre Labastie <pierre.labastie@…> (01/19/2024 09:39:35 PM)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/patcheslist.xsl
rc8be252 ra804944 1 <?xml version='1.0' encoding=' ISO-8859-1'?>1 <?xml version='1.0' encoding='UTF-8'?> 2 2 <!DOCTYPE xsl:stylesheet [ 3 3 <!ENTITY % general-entities SYSTEM "../general.ent"> … … 23 23 24 24 <xsl:template match="/"> 25 <xsl:text>#! /bin/bash

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

</xsl:text> 30 <!-- Create dest.dir if it don't exist --> 31 <xsl:text>mkdir -p </xsl:text> 30 } 31 32 # Create dest.dir if it doesn't exist 33 # Change to it 34 # Remove old patches and possible list of missing patches 35 # Ensure correct ownership 36 37 mkdir -p </xsl:text> 32 38 <xsl:value-of select="$dest.dir"/> 33 <xsl:text> && 
</xsl:text>34 <xsl:text>cd </xsl:text>39 <xsl:text> && 40 cd </xsl:text> 35 41 <xsl:value-of select="$dest.dir"/> 36 <xsl:text> &&

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

</xsl:text> 42 <xsl:text> && 43 44 rm -f *.patch copyerrs && 45 46 </xsl:text> 39 47 <xsl:apply-templates/> 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 ]; then48 <xsl:text> 49 chgrp lfswww *.patch && 50 if [ `wc -l copyerrs|sed 's/ *//' |cut -f1 -d' '` -gt 0 ]; then 43 51 mail -s "Missing BLFS patches" blfs-book@lists.linuxfromscratch.org < copyerrs 44 fi </xsl:text>45 <xsl:text>
exit
</xsl:text>52 fi 53 exit</xsl:text> 46 54 </xsl:template> 47 55 … … 100 108 </xsl:choose> 101 109 <xsl:value-of select="$patch.name"/> 102 <xsl:text> . 
</xsl:text> 110 <xsl:text> . 111 </xsl:text> 103 112 </xsl:if> 104 113 </xsl:template>
Note:
See TracChangeset
for help on using the changeset viewer.