#!/bin/shcd pearmkdir /tmp/phpcsX=0 # index file regeneration triggerfor i in *; do X=`expr $X + 1` if [ -d $i ]; then if [ ! -s /tmp/phpcs/$i.xml ]; then echo $i phpcs --report=xml $i > /tmp/phpcs/$i.xml php ~/workspace/pear_testresults/index.php $i > ~/workspace/pear_testresults/phpcs/$i.htm php ~/workspace/pear_testresults/index.php index > /tmp/phpcs.htm if [ `expr $X % 5` -eq 0 ]; then cp /tmp/phpcs.htm ~/workspace/pear_testresults/phpcs/index.htm fi fi fidonephp ~/workspace/pear_testresults/index.php index > ~/workspace/pear_testresults/phpcs/index.htm