#!/bin/sh # # $FreeBSD$ # # set -x trap ' cleanup ' 0 trap ' echo_signal; exit 1' 1 2 3 15 tmp_first=$(mktemp ${WRKDIR:=/tmp}/.plist-first.XXXXXXXXXX) tmp_last=$(mktemp ${WRKDIR}/.plist-last.XXXXXXXXXX) cleanup() { rm -f $tmp_first $tmp_last } echo_signal() { echo "Got Signal -- aborting `basename $0`" } PATH=/bin:/usr/bin cat > $tmp_first <> $tmp_first <> $tmp_first <> $tmp_first fi if [ "$MUTT_SGML" = "yes" ]; then echo "%%DOCSDIR%%/manual.latin1" >> $tmp_first echo "%%DOCSDIR%%/manual.ps" >> $tmp_first fi if [ "$MUTT_HTML" = "yes" ]; then html=372 if [ "$MUTT_COMPRESSED_FOLDERS" = "yes" ]; then html=$(($html + 5)) fi if [ "$MUTT_NNTP" = "yes" ]; then html=$(($html + 22)) fi if [ "$MUTT_QUOTE_PATCH" = "yes" ]; then html=$(($html + 2)) fi if [ "$MUTT_EDIT_THREADS" = "yes" ]; then html=$(($html + 3)) fi if [ "$MUTT_MAILDIR_HEADER_CACHE" = "yes" ]; then html=$(($html + 3)) fi if [ "$MUTT_SIDEBAR_PATCH" = "yes" ]; then html=$(($html + 2)) fi if [ "$MUTT_SIGNATURE_MENU" = "yes" ]; then html=$(($html + 1)) fi if [ "$MUTT_IFDEF_PATCH" = "yes" ]; then html=$(($html + 1)) fi if [ "$MUTT_PGP_PATCH" = "yes" ]; then html=$(($html + 3)) fi if [ "$MUTT_SLAVE_HTML_PAGES" != "" ]; then html=$(($html + $MUTT_SLAVE_HTML_PAGES)) fi echo "%%DOCSDIR%%/html/manual.html" >> $tmp_first echo "%%DOCSDIR%%/html/manual_toc.html" >> $tmp_first i=1 while [ $i -le $html ]; do echo "%%DOCSDIR%%/html/manual$i.html" >> $tmp_first i=$(($i + 1)) done echo "@dirrm %%DOCSDIR%%/html" >> $tmp_last fi cat >> $tmp_last <