#!/bin/sh 

#This is a simple script to create a autoreply.txt based on your
#current FAQ entries in JitterBug. You may wish to run this from CRON.

#Note that you will also have to create a autoreply.head which should
#contain any text you wish to go at the top of the autoreply messages.


cd $HOME/bug_tracking/.faq
OUT="../autoreply.txt"

cat ../autoreply.head > $OUT

I=1
for f in *; do
	echo "$I) $f" >> $OUT
	I=`expr $I + 1`
done

echo >> $OUT
echo >> $OUT

I=1
for f in *; do
	echo "----------------------------------------" >> $OUT
	echo "$I) $f" >> $OUT
	echo >> $OUT
	cat "$f" >> $OUT
	echo >> $OUT
	I=`expr $I + 1`
done



