#!/bin/sh
#
#Post Conversion Process
#

CURRENT=`pwd`
WORKING=/local2/working/resource

for i in $*
do

	echo "========================="
	echo "Postconverting $i"
	echo "========================="
	echo 
	echo

	echo
	echo "Running pgifcoach"
	cd $WORKING/output/$i
	/tp/bin/pgifcoach *.html

#	echo
#	echo "Running postquad"
#	echo
#	cd $WORKING/jh_script/$i/$i.f/
#	/tp/bin/postquad

	cd $WORKING/output/$i
#	echo 
#	echo "Running pfixix"
#	echo
#	/tp/bin/pfixix $i.ix.html

	echo 
	echo "Running paddhtmlvars"
	echo
	/tp/bin/paddhtmlvars $i.toc.html

	echo
	echo "Running p_fix_see_also"
	echo
	/tp/bin/pfixseealso *.html

#	echo 
#	echo "Running premh2"
#	echo
#	/tp/bin/premh2 *fm.html

#	echo 
#	echo ""
#	echo
#	/tp/bin/
done


cd $CURRENT
