mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-18 13:07:50 +00:00
Send an email to lfs-book if the patcheslist.xsl script produces errors. Thanks to Bruce Dubbs
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7373 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
ddd554266c
commit
3bf7cb6f01
@ -15,21 +15,33 @@
|
||||
</xsl:param>
|
||||
|
||||
<xsl:template match="/">
|
||||
<xsl:text>#! /bin/bash

</xsl:text>
|
||||
<xsl:text> umask 002

</xsl:text>
|
||||
<xsl:text>#! /bin/bash
|
||||
|
||||
function copy
|
||||
{
|
||||
cp $1 $2 >>copyerrs 2>&1
|
||||
}
|
||||
|
||||
umask 002 

</xsl:text>
|
||||
|
||||
<!-- Create dest.dir if it don't exist -->
|
||||
<xsl:text> install -d -m 775 -g lfswww </xsl:text>
|
||||
<xsl:text>install -d -m 775 -g lfswww </xsl:text>
|
||||
<xsl:value-of select="$dest.dir"/>
|
||||
<xsl:text> &&
</xsl:text>
|
||||
<xsl:text> cd </xsl:text>
|
||||
<xsl:text>cd </xsl:text>
|
||||
<xsl:value-of select="$dest.dir"/>
|
||||
<xsl:text> &&

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

</xsl:text>
|
||||
<!-- Remove old patches -->
|
||||
<xsl:text>rm -f *.patch copyerrs && 

</xsl:text>
|
||||
<xsl:apply-templates/>
|
||||
<!-- Ensure correct owneship -->
|
||||
<xsl:text>
 chgrp lfswww *.patch &&
</xsl:text>
|
||||
<xsl:text>
 exit
</xsl:text>
|
||||
<xsl:text>
chgrp lfswww *.patch &&
</xsl:text>
|
||||
<xsl:text>
|
||||
if [ `wc -l copyerrs | sed 's/ *//' | cut -f1 -d' '` -gt 0 ]; then
|
||||
mail -s "Missing LFS patches" lfs-book@linuxfromscratch.org < copyerrs
|
||||
fi

</xsl:text>
|
||||
|
||||
<xsl:text>exit
</xsl:text>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="//text()"/>
|
||||
@ -46,7 +58,7 @@
|
||||
<xsl:text>-</xsl:text>
|
||||
<xsl:value-of select="$cut"/>
|
||||
</xsl:variable>
|
||||
<xsl:text> cp /home/httpd/www.linuxfromscratch.org/patches/downloads/</xsl:text>
|
||||
<xsl:text>copy /home/httpd/www.linuxfromscratch.org/patches/downloads/</xsl:text>
|
||||
<xsl:value-of select="substring-before($patch.name2, '-0')"/>
|
||||
<xsl:text>/</xsl:text>
|
||||
<xsl:value-of select="$patch.name"/>
|
||||
|
Loading…
Reference in New Issue
Block a user