Changeset 1248


Ignore:
Timestamp:
Jul 19, 2010, 2:48:00 PM (11 years ago)
Author:
goya
Message:

ajout agenda international a archives

Location:
cpc/trunk/live
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/live/an_ordre_jour_dl.sh

    r1176 r1248  
    11#!/bin/bash
    22
    3 cd /home/roux/dev/cpc/live
     3cd /home/nosdeputes/live
    44
    55date_time=`date +%y%m%d-%HH%M`
    66
    7 cd FJ
     7cd internat
     8touch new.asp
     9mv new.asp last.asp
     10
     11wget http://www.assemblee-nationale.fr/agendas/international.asp -O new.asp > /dev/null 2>&1
     12
     13diff last.asp new.asp > /dev/null
     14
     15# Teste si le fichier a changé
     16if [ $? -ne 0 ]; then
     17  cp -p new.asp AI_${date_time}.asp
     18  echo Nouvel Agenda International : AI_${date_time}.asp
     19fi
     20
     21
     22cd ../FJ
    823touch new.pdf
    924mv new.pdf last.pdf
    1025
    11 wget http://www.assemblee-nationale.fr/13/seance/feuille-jaune.pdf -O new.pdf
     26wget http://www.assemblee-nationale.fr/13/seance/feuille-jaune.pdf -O new.pdf > /dev/null 2>&1
    1227
    13 pdftohtml -i new.pdf
    14 pdftohtml -i last.pdf
     28pdftohtml -i new.pdf > /dev/null
     29pdftohtml -i last.pdf > /dev/null
    1530sed 's/news/lasts/g' news.html > news2.html
    1631diff lasts.html news2.html > /dev/null
     
    1934if [ $? -ne 0 ]; then
    2035  cp -p new.pdf FJ_${date_time}.pdf
     36  echo Nouvelle Feuille jaune : FJ_${date_time}.pdf
    2137fi
    2238
    23 rm new*.html
    24 rm new*.png
    25 rm last*.png
    26 rm last*.html
     39rm -f new*.html
     40rm -f new*.png
     41rm -f last*.png
     42rm -f last*.html
    2743
    2844cd ../FV
     
    3046mv new.pdf last.pdf
    3147
    32 wget http://www.assemblee-nationale.fr/agendas/conference.pdf -O new.pdf
     48wget http://www.assemblee-nationale.fr/agendas/conference.pdf -O new.pdf > /dev/null 2>&1
    3349
    34 pdftohtml -i new.pdf
    35 pdftohtml -i last.pdf
     50pdftohtml -i new.pdf > /dev/null
     51pdftohtml -i last.pdf > /dev/null
    3652sed 's/news/lasts/g' news.html > news2.html
    3753diff lasts.html news.html > /dev/null
     
    4056if [ $? -ne 0 ]; then
    4157  cp -p new.pdf FV_${date_time}.pdf
     58  echo Nouvelle Feuille verte : FV_${date_time}.pdf
    4259  perl parse_FV.pl > ../tmp_calendrier
    4360  cat ../calendrier ../tmp_calendrier | sort | uniq > ../tmp_calendrier2
    4461  mv ../tmp_calendrier2 ../calendrier
    45   rm ../tmp_calendrier*
     62  rm -f ../tmp_calendrier*
    4663fi
    4764
    48 rm new*.html
    49 rm last*.html
     65rm -f new*.html
     66rm -f last*.html
    5067
Note: See TracChangeset for help on using the changeset viewer.