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/ /