#!/bin/sh # # RTF.sum - takes a filename as the first argument. Create a # html format file from the input. Pass that filename to the # html summarizer. # # Usage: RTF.sum filename # if test -z "$TMPDIR"; then TMPDIR="/tmp" fi if test ! -r "$1"; then echo "RTF.sum: Cannot read file: $1" 1>&2 exit 1 fi tfile="$TMPDIR/rtf2html.$$.html" # uncomment this if you want the included converter rtf2html $1 > $tfile 2> /dev/null # uncomment this if you have GNU UnRTF installed #unrtf --nopict $1 > $tfile 2> /dev/null HTML.sum $tfile rm -f $tfile exit 0