… | |
… | |
3 | if test "$#" -lt 3 ; then |
3 | if test "$#" -lt 3 ; then |
4 | echo "Syntax: $0 psiconv_dir output_dir files..." |
4 | echo "Syntax: $0 psiconv_dir output_dir files..." |
5 | exit 1 |
5 | exit 1 |
6 | fi |
6 | fi |
7 | |
7 | |
8 | if ! test -d "$1"/psiconv ; then |
8 | if ! test -d "$1"/program/psiconv ; then |
9 | echo "First parameter should be base psiconv directory!" |
9 | echo "First parameter should be base psiconv directory!" |
10 | exit 1 |
10 | exit 1 |
11 | fi |
11 | fi |
12 | basedir=`cd $1; pwd` |
12 | basedir=`cd $1; pwd` |
13 | |
13 | |
… | |
… | |
21 | shift |
21 | shift |
22 | shift |
22 | shift |
23 | echo "Generating html docs..." |
23 | echo "Generating html docs..." |
24 | |
24 | |
25 | libtool=$basedir/libtool |
25 | libtool=$basedir/libtool |
26 | psiconv=$basedir/psiconv/psiconv |
26 | psiconv=$basedir/program/psiconv/psiconv |
27 | indexfile=$outputdir/index |
27 | indexfile=$outputdir/index |
28 | tempdir=$outputdir/.temp |
28 | tempdir=$outputdir/.temp |
29 | mkindex=$basedir/formats/index_html.sh |
29 | mkindex=$basedir/formats/index_html.sh |
30 | index=$tempdir/index |
30 | index=$tempdir/index |
31 | mkdef=$basedir/formats/html_links.sh |
31 | mkdef=$basedir/formats/html_links.sh |
… | |
… | |
35 | rm -rf $tempdir |
35 | rm -rf $tempdir |
36 | mkdir $tempdir |
36 | mkdir $tempdir |
37 | for file in "$@"; do |
37 | for file in "$@"; do |
38 | echo "Going to process $file..." |
38 | echo "Going to process $file..." |
39 | outputfile=$tempdir/`basename $file|sed s,'.psi$','.html,'` |
39 | outputfile=$tempdir/`basename $file|sed s,'.psi$','.html,'` |
40 | echo $libtool --mode=execute $psiconv $file -o $outputfile -Thtml |
40 | echo $libtool --mode=execute $psiconv $file -o $outputfile -Thtml3 |
41 | $libtool --mode=execute $psiconv $file -o $outputfile -Thtml |
41 | $libtool --mode=execute $psiconv $file -o $outputfile -Thtml3 |
42 | done |
42 | done |
43 | |
43 | |
44 | echo "Going to produce the index..." |
44 | echo "Going to produce the index..." |
45 | ( |
45 | ( |
46 | cd $tempdir |
46 | cd $tempdir |