#!/bin/sh
#
#  reqglimpse
#    A simple wrapper around glimpse that knows where the req glimpse 
#    index files are and understands a little bit about the arrangement
#    of resolved and active files.
#
#  Args:
#    -a : search the active files
#    -r : search the resolved files
#  All other args are passed onto glimpse.
#
# $Id: reqglimpse,v 1.1.1.1 2000/03/06 21:16:11 jwise Exp $
#


case "$1" in 
  -a*)
     FARGS="-F active"
     shift
     ;;
  -r*)
     FARGS="-F resolved"
     shift
     ;;
  *)
     FARGS=""
     ;;
esac

@{GLIMPSE_PATH} -H @{CODE_REQUEST_ETC_DIR} $FARGS "$@"
