--- psiconv/trunk/formats/generate_html4.sh 2002/05/10 16:15:10 149 +++ psiconv/trunk/formats/generate_html4.sh 2004/02/21 13:24:04 216 @@ -1,5 +1,8 @@ #! /bin/sh +# Work around a BASH bug (prints a directory even in a non-interactive shell) +unset CDPATH + if test "$#" -lt 3 ; then echo "Syntax: $0 psiconv_dir output_dir files..." exit 1 @@ -28,7 +31,7 @@ tempdir=$outputdir/.temp mkindex=$basedir/formats/index_html.sh index=$tempdir/index -mkdef=$basedir/formats/html_links.sh +mkdef=$basedir/formats/html4_links.sh echo "Going to create the intermediate files..." @@ -37,8 +40,8 @@ for file in "$@"; do echo "Going to process $file..." outputfile=$tempdir/`basename $file|sed s,'.psi$','.html,'` - echo $libtool --mode=execute $psiconv -o $outputfile -Thtml4 $file - $libtool --mode=execute $psiconv -o $outputfile -Thtml4 $file + echo $libtool --mode=execute $psiconv -o $outputfile -Thtml4 -eASCII $file + $libtool --mode=execute $psiconv -o $outputfile -Thtml4 -eASCII $file done echo "Going to produce the index..."