#!/bin/sh
# $Id: cleanup 5 2004-03-20 02:21:13Z amyzing $
# this requires 1 to 3 parameters.
# If there are two parameters, then the first is the index file,
# the second is the name of the output file (stdout by default,
# which is utterly useless in the context of the script).
# if there are three, then the first is the signal character,
# and two and three are the same as one and two above.  Clear?
# We no longer know why this file is here at all.  It's probably
# a unit test, from the days before we understood the concept

if [ -z "$1" ] ; then
  exit
fi

if [ -z "$3" ] ; then
  dumpstr $1 $2
  idxstr -u $1
else
  dumpstr -c $3 $1 $2
  idxstr -c $3 -u $1
fi
