… | |
… | |
30 | indexfile=$outputdir/index |
30 | indexfile=$outputdir/index |
31 | tempdir=$outputdir/.temp |
31 | tempdir=$outputdir/.temp |
32 | mkindex=$basedir/formats/index_html.sh |
32 | mkindex=$basedir/formats/index_html.sh |
33 | index=$tempdir/index |
33 | index=$tempdir/index |
34 | mkdef=$basedir/formats/xhtml_links.sh |
34 | mkdef=$basedir/formats/xhtml_links.sh |
|
|
35 | config="$basedir/formats/psiconv.conf" |
35 | |
36 | |
36 | |
37 | |
37 | echo "Going to create the intermediate files..." |
38 | echo "Going to create the intermediate files..." |
38 | rm -rf $tempdir |
39 | rm -rf $tempdir |
39 | mkdir $tempdir |
40 | mkdir $tempdir |
40 | for file in "$@"; do |
41 | for file in "$@"; do |
41 | echo "Going to process $file..." |
42 | echo "Going to process $file..." |
42 | outputfile=$tempdir/`basename $file|sed s,'.psi$','.html,'` |
43 | outputfile=$tempdir/`basename $file|sed s,'.psi$','.html,'` |
43 | echo $libtool --mode=execute $psiconv -o $outputfile -Txhtml -eASCII $file |
44 | echo $libtool --mode=execute $psiconv -c $config -o $outputfile -Txhtml -eASCII $file |
44 | $libtool --mode=execute $psiconv -o $outputfile -Txhtml -eASCII $file |
45 | $libtool --mode=execute $psiconv -c $config -o $outputfile -Txhtml -eASCII $file |
45 | done |
46 | done |
46 | |
47 | |
47 | echo "Going to produce the index..." |
48 | echo "Going to produce the index..." |
48 | ( |
49 | ( |
49 | cd $tempdir |
50 | cd $tempdir |