#! /usr/local/bin/perl
#
# htgrep	--- cgi-bin script to query a database of HTML paragraphs
#
# NB: this script may have to be installed as "htgrep.cgi"
# to run as a CGI script.

# Copyright (c) 1995 Oscar Nierstrasz

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or (at
# your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program (as the file COPYING in the main directory of
# the distribution); if not, write to the Free Software Foundation,
# Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

# This script and friends can be found at:
#
# http://iamwww.unibe.ch/~scg/Src/
#
# Author: Oscar Nierstrasz (oscar\@iam.unibe.ch)

# include dir for htgrep
$PERLLIB_INC = "/home/scg/local/perl/lib";
unshift(@INC,$PERLLIB_INC);

require("htgrep.pl");

# Pick up tags from the environment:
&htgrep'settags($ENV{'PATH_INFO'});
&htgrep'settags($ENV{'QUERY_STRING'});

&htgrep'doit;

