#! /bin/sh MHONARC=/global/ices/toolset/mhonarc-2.4.8/bin/mhonarc WEBDIR=/global/ices/www/autocontent/lists MAILDIR=/global/ices/vlab/mngt/maillogs lists="announce am" if [ ! -x $MHONARC ]; then echo "$MHONARC not executable (not found?)" >&2 exit 1 fi if [ ! -d $WEBDIR ]; then echo "Web dir $WEBDIR not found" >&2 exit 1 fi if [ ! -d $MAILDIR ]; then echo "Mail log dir $MAILDIR not found" >&2 exit 1 fi for list in $lists ; do $MHONARC -quiet -title "Mail list acrhive $list" \ --definevars "MAIN-TITLE=$list" \ -rcfile $MAILDIR/frames.mrc \ -outdir $WEBDIR/$list $MAILDIR/$list done