#!/bin/bash EXP=$(echo *.trc) EXP=${EXP%%.trc} SEQFILE=${EXP}.seq CST=$(echo ../bin/TestPSML) if [ ! -f "$SEQFILE" -o -z $CST ]; then echo "ERROR: can't find $SEQFILE or $CST" > /dev/stderr exit fi echo "SUFFIX TREE PROCESSING SEQ: $EXP" STREE=${EXP}.stree.gv EDGECNTS=${EXP}.stree.root-d1.node-edge-cnt OFFSETS=${EXP}.stree.root-d1.node-len-offsets echo -e "-o${STREE} -n0 -T\n-o${EDGECNTS} -n0 -d1 -C\n-o${OFFSETS} -n0 -d1 -F\n-q" | ${CST} ${EXP}.seq echo " Creating $STREE" echo " Creating $EDGECNTS" echo " Creating $OFFSETS" # next line uses ja hack to get the unique sequences for the trace by printing # the details about depth 1 children of the root # ${COMPRESS}/cst_v_1_1/TestLCSS ${EXP}.seq 0 > ${EXP}.stree.rootd1children.dot