lilalo

diff l3scripts @ 62:c4bea959dbb1

Beautyfication of l3-agent code. Many lines were erased. Need to be tested
author devi
date Thu Jan 26 00:00:53 2006 +0200 (2006-01-26)
parents 0b1553611bb5
children b7a217f8e963
line diff
     1.1 --- a/l3scripts	Sat Jan 14 18:23:11 2006 +0200
     1.2 +++ b/l3scripts	Thu Jan 26 00:00:53 2006 +0200
     1.3 @@ -53,18 +53,19 @@
     1.4  cd $coursepath; make personal; cd ~-
     1.5  
     1.6  ###POST-makeout
     1.7 +rnd=${RANDOM}${RANDOM}${RANDOM}
     1.8  rm -rf /tmp/$course-$date
     1.9  mkdir /tmp/$course-$date
    1.10  find $outpath/*$date* -name \*.pdf -exec cp {} /tmp/$course-$date/ \;
    1.11  cd /tmp
    1.12  rm -rf $course-$date.zip 2> /dev/null
    1.13  zip -r $course-$date.zip $course-$date
    1.14 -mv $course-$date.zip /var/www/tmp/
    1.15 +mv $course-$date.zip /var/www/igor/tmp/$course-$date-${rnd}.zip
    1.16  mutt -s 'Сгенерированы методички' imchubin\@mail.ru <<LETTER
    1.17  Сгенерированы методички для курса $course, который начинается $date.
    1.18  
    1.19  Архив файлов для печати можно получить по адресу:
    1.20 -http://chub.in/tmp/$course-$date.zip
    1.21 +http://igor.chub.in/tmp/$course-$date-${rnd}.zip
    1.22  Архив будет доступен по этому адресу в течение трех дней.
    1.23  
    1.24  --