1 | #!/bin/sh |
1 | #! /bin/sh |
2 | |
2 | |
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 |
… | |
… | |
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 -Thtml3 |
40 | echo $libtool --mode=execute $psiconv -o $outputfile -Thtml3 $file |
41 | $libtool --mode=execute $psiconv $file -o $outputfile -Thtml3 |
41 | $libtool --mode=execute $psiconv -o $outputfile -Thtml3 $file |
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 |