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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 195 - (hide annotations)
Wed Feb 4 11:35:35 2004 UTC (20 years, 10 months ago) by frodo
File MIME type: application/x-sh
File size: 1475 byte(s)
(Frodo) Format documentation work

  * Uploaded newest Format documentation
  * Split generate_html.sh into xhtml and html4 specific versions
  * Changed gen_xhtml and gen_html4 to combine spans that have the
    same layout codes
  * Changed gen_xhtml and gen_html4 not to emit empty spans

1 frodo 149 #! /bin/sh
2 frodo 2
3     if test "$#" -lt 3 ; then
4     echo "Syntax: $0 psiconv_dir output_dir files..."
5     exit 1
6     fi
7    
8 frodo 149 if ! test -d "$1"/program/psiconv ; then
9 frodo 2 echo "First parameter should be base psiconv directory!"
10     exit 1
11     fi
12     basedir=`cd $1; pwd`
13    
14     if ! test -d "$2" ; then
15     echo "Output directory does not exist!"
16     exit 1
17     fi
18     outputdir=`cd $2; pwd`
19    
20    
21     shift
22     shift
23     echo "Generating html4 docs..."
24    
25     libtool=$basedir/libtool
26 frodo 59 psiconv=$basedir/program/psiconv/psiconv
27 frodo 2 indexfile=$outputdir/index
28     tempdir=$outputdir/.temp
29     mkindex=$basedir/formats/index_html.sh
30     index=$tempdir/index
31 frodo 195 mkdef=$basedir/formats/html4_links.sh
32 frodo 2
33    
34     echo "Going to create the intermediate files..."
35     rm -rf $tempdir
36     mkdir $tempdir
37     for file in "$@"; do
38     echo "Going to process $file..."
39     outputfile=$tempdir/`basename $file|sed s,'.psi$','.html,'`
40 frodo 193 echo $libtool --mode=execute $psiconv -o $outputfile -Thtml4 -eASCII $file
41     $libtool --mode=execute $psiconv -o $outputfile -Thtml4 -eASCII $file
42 frodo 2 done
43    
44     echo "Going to produce the index..."
45     (
46     cd $tempdir
47     files=
48     for file in "$@"; do
49     files="$files `basename $file|sed s,'.psi$','.html',`"
50     done
51     $mkindex $index $files
52     )
53    
54     echo "Going to produce the final files..."
55     for file in "$@"; do
56     echo "Going to process $file..."
57     inputfile=$tempdir/`basename $file|sed s,'.psi$','.html,'`
58     outputfile=$outputdir/`basename $file|sed s,'.psi$','.html,'`
59     rm -f $outputfile
60     echo $mkdef $index $inputfile \> $outputfile
61     $mkdef $index $inputfile > $outputfile
62     done

Properties

Name Value
svn:executable *

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