#!/bin/sh ############################################################################# # # Harvest Indexer http://www.tardis.ed.ac.uk/harvest/ # --------------------------------------------------- # # The Harvest Indexer is a continued development of code developed by # the Harvest Project. Development is carried out by numerous individuals # in the Internet community, and is not officially connected with the # original Harvest Project or its funding sources. # # Please mail harvest@tardis.ed.ac.uk if you are interested in participating # in the development effort. # # 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; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # pstext -e $1 if [ ! $? = 0 ] ; then ps2txt $1 | fmt | head -20 | wrapit "Partial-Text" else pstext $1 | head -500 | Text.sum fi exit 0