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

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

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

Revision 216 Revision 250
6if test "$#" -lt 3 ; then 6if test "$#" -lt 3 ; then
7 echo "Syntax: $0 psiconv_dir output_dir files..." 7 echo "Syntax: $0 psiconv_dir output_dir files..."
8 exit 1 8 exit 1
9fi 9fi
10 10
11if ! test -d "$1"/program/psiconv ; then 11if test ! -d "$1"/program/psiconv ; then
12 echo "First parameter should be base psiconv directory!" 12 echo "First parameter should be base psiconv directory!"
13 exit 1 13 exit 1
14fi 14fi
15basedir=`cd $1; pwd` 15basedir=`cd $1; pwd`
16 16
17if ! test -d "$2" ; then 17if test ! -d "$2" ; then
18 echo "Output directory does not exist!" 18 echo "Output directory does not exist!"
19 exit 1 19 exit 1
20fi 20fi
21outputdir=`cd $2; pwd` 21outputdir=`cd $2; pwd`
22 22
30indexfile=$outputdir/index 30indexfile=$outputdir/index
31tempdir=$outputdir/.temp 31tempdir=$outputdir/.temp
32mkindex=$basedir/formats/index_html.sh 32mkindex=$basedir/formats/index_html.sh
33index=$tempdir/index 33index=$tempdir/index
34mkdef=$basedir/formats/html4_links.sh 34mkdef=$basedir/formats/html4_links.sh
35config="$basedir/formats/psiconv.conf"
35 36
36 37
37echo "Going to create the intermediate files..." 38echo "Going to create the intermediate files..."
38rm -rf $tempdir 39rm -rf $tempdir
39mkdir $tempdir 40mkdir $tempdir
40for file in "$@"; do 41for 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 -Thtml4 -eASCII $file 44 echo $libtool --mode=execute $psiconv -c $config -o $outputfile -Thtml4 -eASCII $file
44 $libtool --mode=execute $psiconv -o $outputfile -Thtml4 -eASCII $file 45 $libtool --mode=execute $psiconv -c $config -o $outputfile -Thtml4 -eASCII $file
45done 46done
46 47
47echo "Going to produce the index..." 48echo "Going to produce the index..."
48( 49(
49 cd $tempdir 50 cd $tempdir

Legend:
Removed from v.216  
changed lines
  Added in v.250

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