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