2005-11-23 09:30:39 +05:30
|
|
|
#! /bin/sh
|
|
|
|
|
2005-11-24 01:46:39 +05:30
|
|
|
# $Id$
|
|
|
|
|
2005-11-23 09:30:39 +05:30
|
|
|
GDIR=`dirname $PWD`
|
|
|
|
TDIR=$GDIR/test
|
|
|
|
OPTS="-i $GDIR/example/gramps/example.gramps -f gramps-xml"
|
|
|
|
PRG="python gramps.py"
|
|
|
|
|
2005-11-23 11:33:24 +05:30
|
|
|
GRPH_FMT="sxw ps pdf svg"
|
2005-11-24 01:46:39 +05:30
|
|
|
TEXT_FMT="sxw pdf kwd abw rtf txt"
|
2005-11-23 11:33:24 +05:30
|
|
|
|
|
|
|
GRPH_REP="ancestor_chart ancestor_chart2 descendant_graph"
|
2005-11-24 01:46:39 +05:30
|
|
|
TEXT_REP="ancestor_report ancestors_report descend_report det_ancestor_report det_descendant_report family_group"
|
2005-11-23 09:30:39 +05:30
|
|
|
|
2005-11-23 11:33:24 +05:30
|
|
|
# Single run with all graphical reports in all formats
|
|
|
|
echo ""
|
|
|
|
echo "+--------------------------------------------------------------"
|
|
|
|
echo "| Reports:"
|
|
|
|
echo "| "$GRPH_REP
|
|
|
|
echo "| Formats:"
|
|
|
|
echo "| "$GRPH_FMT
|
|
|
|
echo "+--------------------------------------------------------------"
|
|
|
|
action=
|
2005-11-24 01:46:39 +05:30
|
|
|
for report in $GRPH_REP; do
|
|
|
|
for fmt in $GRPH_FMT; do
|
2005-11-23 11:33:24 +05:30
|
|
|
action="$action -a report -p name=$report,id=I44,off=$fmt,of=$TDIR/$report.$fmt"
|
|
|
|
done
|
|
|
|
done
|
2005-11-24 01:46:39 +05:30
|
|
|
(cd $GDIR/src; $PRG $OPTS $action)
|
|
|
|
|
|
|
|
# Single run with all textual reports in all formats
|
2005-11-23 11:33:24 +05:30
|
|
|
echo ""
|
|
|
|
echo "+--------------------------------------------------------------"
|
|
|
|
echo "| Reports:"
|
|
|
|
echo "| "$TEXT_REP
|
|
|
|
echo "| Formats:"
|
|
|
|
echo "| "$TEXT_FMT
|
|
|
|
echo "+--------------------------------------------------------------"
|
2005-11-24 01:46:39 +05:30
|
|
|
action=
|
|
|
|
for report in $TEXT_REP; do
|
|
|
|
for fmt in $TEXT_FMT; do
|
|
|
|
action="$action -a report -p name=$report,id=I44,off=$fmt,of=$TDIR/$report.$fmt"
|
|
|
|
done
|
|
|
|
done
|
2005-11-23 11:33:24 +05:30
|
|
|
(cd $GDIR/src; $PRG $OPTS $action)
|