#!/bin/bash

mkdir -p tmpdoc/
for i in  agg_seg bldtree bw cp_parm delint inc_comp \
	  init_gau init_mixw kmeans_init make_quests mixw_interp \
	  mk_flat mk_mdef_gen mk_mllr_class mk_model_def map_adapt \
	  mk_s2sendump mk_s3gau mk_s3mixw mk_ts2cb mllr_solve mllr_transform \
	  norm param_cnt printp prunetree tiestate QUICK_COUNT
do 
echo $i
./bin.@host@/$i > tmp 2>&1 
./bin.@host@/$i -help yes > help 
./bin.@host@/$i -example yes > example 
@PERL@ ./scripts_pl/texFormat.pl tmp tmpdoc/${i}.tex $i help example
done

rm tmp help example