#!/bin/sh
#this script builds the reference list for tmhv given a dir that contains a book.toc
for i in $@
do
	grep -E "^4\|" $i/book.toc | /bin/sed -e's/4\|\([^\|]*\)\|\(.*\)#.*/\1	$$$1\/\2/' -e"s%\$\$\$1%$i%"
done
