#!/bin/bash echo "The wit report does not work for you because you do not have a wit database" exit 1 OUR_PID=$$ if [ "$1" = "-name" ]; then echo -n "WIT Report" exit fi if [ "$1" = "" ]; then echo "Requires a project name, example $0 devel" exit 1 fi OUR_PROJECT_NAME="$1" REPORT_SRC="WitReport.html" REPORT_OUT="WitReport_$OUR_PROJECT_NAME.erf" REPORT_HTML="WitReport_$OUR_PROJECT_NAME.html" REPORT_PS="WitReport_$OUR_PROJECT_NAME.ps" ./GenReport.php $REPORT_SRC $REPORT_OUT PROJECT_NAME=$OUR_PROJECT_NAME ERROR=$? if [ $ERROR -ne 0 ]; then echo "Error trying to generate report" exit 1 fi #konqueror $REPORT_HTML #exit 1 rm -f $REPORT_OUT html2ps -U -f letter.portrate -D -c $REPORT_HTML > $REPORT_PS kprinter -t "Evaluation Report" -o usletter $REPORT_PS sleep 5 rm -f $REPORT_PS