/[public]/psiconv/trunk/formats/generate_xhtml.sh
ViewVC logotype

Diff of /psiconv/trunk/formats/generate_xhtml.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 195 Revision 221
1#! /bin/sh 1#! /bin/sh
2
3# Work around a BASH bug (prints a directory even in a non-interactive shell)
4unset CDPATH
2 5
3if test "$#" -lt 3 ; then 6if test "$#" -lt 3 ; then
4 echo "Syntax: $0 psiconv_dir output_dir files..." 7 echo "Syntax: $0 psiconv_dir output_dir files..."
5 exit 1 8 exit 1
6fi 9fi
27indexfile=$outputdir/index 30indexfile=$outputdir/index
28tempdir=$outputdir/.temp 31tempdir=$outputdir/.temp
29mkindex=$basedir/formats/index_html.sh 32mkindex=$basedir/formats/index_html.sh
30index=$tempdir/index 33index=$tempdir/index
31mkdef=$basedir/formats/xhtml_links.sh 34mkdef=$basedir/formats/xhtml_links.sh
35config="$basedir/formats/psiconv.conf"
32 36
33 37
34echo "Going to create the intermediate files..." 38echo "Going to create the intermediate files..."
35rm -rf $tempdir 39rm -rf $tempdir
36mkdir $tempdir 40mkdir $tempdir
37for file in "$@"; do 41for file in "$@"; do
38 echo "Going to process $file..." 42 echo "Going to process $file..."
39 outputfile=$tempdir/`basename $file|sed s,'.psi$','.html,'` 43 outputfile=$tempdir/`basename $file|sed s,'.psi$','.html,'`
40 echo $libtool --mode=execute $psiconv -o $outputfile -Txhtml -eASCII $file 44 echo $libtool --mode=execute $psiconv -c $config -o $outputfile -Txhtml -eASCII $file
41 $libtool --mode=execute $psiconv -o $outputfile -Txhtml -eASCII $file 45 $libtool --mode=execute $psiconv -c $config -o $outputfile -Txhtml -eASCII $file
42done 46done
43 47
44echo "Going to produce the index..." 48echo "Going to produce the index..."
45( 49(
46 cd $tempdir 50 cd $tempdir

Legend:
Removed from v.195  
changed lines
  Added in v.221

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26