From 3bf7cb6f015ca9589c976795311c00df186e7b5c Mon Sep 17 00:00:00 2001 From: Matthew Burgess Date: Tue, 14 Feb 2006 20:18:58 +0000 Subject: 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 --- stylesheets/patcheslist.xsl | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/stylesheets/patcheslist.xsl b/stylesheets/patcheslist.xsl index 8f99b7c1f..3946ae52c 100644 --- a/stylesheets/patcheslist.xsl +++ b/stylesheets/patcheslist.xsl @@ -15,21 +15,33 @@ - #! /bin/bash - umask 002 + #! /bin/bash + +function copy +{ + cp $1 $2 >>copyerrs 2>&1 +} + +umask 002 + - install -d -m 775 -g lfswww + install -d -m 775 -g lfswww && - cd + cd && - - touch dummy.patch && rm -f *.patch && + + rm -f *.patch copyerrs && - chgrp lfswww *.patch && - exit + chgrp lfswww *.patch && + +if [ `wc -l copyerrs | sed 's/ *//' | cut -f1 -d' '` -gt 0 ]; then + mail -s "Missing LFS patches" lfs-book@linuxfromscratch.org < copyerrs +fi + + exit @@ -46,7 +58,7 @@ - - cp /home/httpd/www.linuxfromscratch.org/patches/downloads/ + copy /home/httpd/www.linuxfromscratch.org/patches/downloads/ / -- cgit v1.2.3-54-g00ecf