gest366/lib/spipu/html2pdf/test/generate.sh

14 lines
277 B
Bash
Raw Permalink Normal View History

2021-02-24 20:40:04 +00:00
#!/usr/bin/env bash
rm -f *.pdf
cd ../examples
for PHP_SCRIPT in $(ls ./*.php);
do
PDF_FILE=`echo "$PHP_SCRIPT" | sed -r 's/\.php/\.pdf/g' | sed -r 's/\.\//\.\.\/test\//g'`
echo "Example $PHP_SCRIPT => $PDF_FILE"
php $PHP_SCRIPT > $PDF_FILE
done
cd ../test
ls -l