| ... | ... |
@@ -24,11 +24,18 @@ do |
| 24 | 24 |
log "====== $gen" |
| 25 | 25 |
output=$(echo $gen|cut -d'-' -f2|cut -d'.' -f1).html |
| 26 | 26 |
php $gen > $output 2>> $LOGFILE |
| 27 |
- #html2pdf $output 2>> $LOGFILE |
|
| 28 | 27 |
NEWSALL="all-$output" |
| 29 | 28 |
NEWSPDF=$(basename $NEWSALL .html).pdf |
| 30 | 29 |
log "Generating Single HTML for $NEWSALL" |
| 31 | 30 |
php news2html.php $output > $NEWSALL 2>> $LOGFILE |
| 31 |
+ if [ "$NEWSALL" != "all-huffingtonpostfr.html" ] |
|
| 32 |
+ then |
|
| 33 |
+ if [ "$NEWSALL" != "all-vicefr.html" ] |
|
| 34 |
+ then |
|
| 35 |
+ log "Generating PDF $NEWSPDF" |
|
| 36 |
+ xvfb-run -a --server-args="-screen 0, 800x600x16" /usr/bin/wkhtmltopdf -q -l -s A5 $NEWSALL $NEWSPDF 2>> $LOGFILE |
|
| 37 |
+ fi |
|
| 38 |
+ fi |
|
| 32 | 39 |
done |
| 33 | 40 |
log "Done." |
| 34 | 41 |
log "==================================================================" |