All pastes #612621 Raw Edit

ashnazg

public shellscript v1 · immutable
·published 2007-07-10 14:46 UTC
rendered paste body
#!/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