#!/bin/sh

test -d $1 || echo "Could not find dir $1.  Are you building locally?"

#echo "m4_include(stdlib.mc)"
#echo "_START(Download packages)"
#echo
#echo "_PJ()"
#echo "Please select the packages appropriate to the distribution of GNU/Linux that"
#echo "you wish to install the software on.  Note that the SRPMS are source code"
#echo "packages."
#echo
#echo "_PJ()"
#echo "<dl>"

for file in *.txt; do
	filename=$(basename $file)
	echo "${filename/.txt/.html}"
	cat top.html > ${filename/.txt/.html}
	sed -e "s/</\&lt;/g" -e "s/>/\&gt;/g" $filename >> ${filename/.txt/.html}
	cat bottom.html >> ${filename/.txt/.html}
done

#echo "</dl>"
#echo "_STOP()"

	
