echo Running wget to get files . . . .

wget -r -l50 -k -R.gz,.text -I/ -X/about_us,/administration,/audio,/cgi/class,/cgi/include,/cgi/lib,/cgi/util,/conferences,/contact,/data,/projects/aurora,/projects/bse,/projects/jeida,/projects/nbest_pronunciations,/projects/nsf_itr,/projects/robust_low_perplexity,/projects/southern_accents,/projects/switchboard,/projects/t1_interface,/projects/usfs,/projects/speech/databases,/projects/speech/experiments,/projects/speech/html,/projects/speech/old,/projects/speech/support,/projects/speech/software/demonstrations,/projects/speech/software/downloads,/projects/speech/software/legacy,/projects/speech/software/tutorials,/publications,/search,/templates,/webapps,/whats_new -o wget.log http://www.isip.msstate.edu/projects/speech/software/documentation

echo Renaming cgi/bin files . . . .

cd www.isip.msstate.edu/cgi/bin
files=`ls`
capture_documentation -cgi $files
cd ../../..

echo Setting automatic link from root to documentation

cd www.isip.msstate.edu
capture_documentation -reset
cd ..

echo Changing references to ifc_document.pl parameters

files=`find www.isip.msstate.edu/ -name index.html -print`
capture_documentation $files

echo Building tar file . . . .

tar cf ifc_documentation.tar www.isip.msstate.edu

echo Tar file is ifc_documentation.tar

# echo Removing work files . . .
# rm wget.log
# rm -rf www.isip.msstate.edu

echo Job completed.
