source: trunk/client/inc/hpdf5/spipu/html2pdf/test/generate.sh@ 429

Last change on this file since 429 was 347, checked in by roby, 4 years ago

Aggiornamento per compatibilità con php7.4

File size: 311 bytes
RevLine 
[347]1#!/usr/bin/env bash
2
3cd "$( dirname "${BASH_SOURCE[0]}" )"
4
5rm -f *.pdf
6
7cd ../examples
8for PHP_SCRIPT in $(ls ./*.php);
9do
10 PDF_FILE=`echo "$PHP_SCRIPT" | sed 's/\.php/\.pdf/g' | sed 's/\.\//\.\.\/test\//g'`
11 echo "Example $PHP_SCRIPT => $PDF_FILE"
12 php $PHP_SCRIPT > $PDF_FILE
13done
14
15cd ../test
16ls -l
Note: See TracBrowser for help on using the repository browser.