--- psiconv/trunk/formats/generate_html4.sh 1999/10/03 21:10:47 2
+++ psiconv/trunk/formats/generate_html4.sh 2004/02/21 13:24:04 216
@@ -1,11 +1,14 @@
-#!/bin/sh
+#! /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
fi
-if ! test -d "$1"/psiconv ; then
+if ! test -d "$1"/program/psiconv ; then
echo "First parameter should be base psiconv directory!"
exit 1
fi
@@ -23,12 +26,12 @@
echo "Generating html4 docs..."
libtool=$basedir/libtool
-psiconv=$basedir/psiconv/psiconv
+psiconv=$basedir/program/psiconv/psiconv
indexfile=$outputdir/index
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 $file -o $outputfile -Thtml4
- $libtool --mode=execute $psiconv $file -o $outputfile -Thtml4
+ 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..."