#!/bin/sh
rm -f htemp.tmp
find m*tex  |awk '{print "\\item \\input{./"$0"}\n\\href{./"$0"}{Tehtava}\n"}' >htemp.tmp
for x in *.htex 
do
	cat $x htemp.tmp >../../src2/$x	
	echo '\end{itemize}' >>../../src2/$x
	echo '\end{threeColumn}' >> ../../src2/$x
	echo '\end{document}' >>../../src2/$x
done
