--- psiconv/trunk/formats/generate_xhtml.sh 2004/02/04 11:35:35 195
+++ psiconv/trunk/formats/generate_xhtml.sh 2004/02/23 13:34:44 221
@@ -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
@@ -29,6 +32,7 @@
mkindex=$basedir/formats/index_html.sh
index=$tempdir/index
mkdef=$basedir/formats/xhtml_links.sh
+config="$basedir/formats/psiconv.conf"
echo "Going to create the intermediate files..."
@@ -37,8 +41,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 -Txhtml -eASCII $file
- $libtool --mode=execute $psiconv -o $outputfile -Txhtml -eASCII $file
+ echo $libtool --mode=execute $psiconv -c $config -o $outputfile -Txhtml -eASCII $file
+ $libtool --mode=execute $psiconv -c $config -o $outputfile -Txhtml -eASCII $file
done
echo "Going to produce the index..."