… | |
… | |
18 | */ |
18 | */ |
19 | |
19 | |
20 | /* Driver program */ |
20 | /* Driver program */ |
21 | |
21 | |
22 | #include "config.h" |
22 | #include "config.h" |
|
|
23 | #include "compat.h" |
23 | #include <getopt.h> |
24 | #include <getopt.h> |
24 | #include <stdio.h> |
25 | #include <stdio.h> |
25 | #include <sys/stat.h> |
26 | #include <sys/stat.h> |
26 | #include <stdlib.h> |
27 | #include <stdlib.h> |
27 | |
28 | |
… | |
… | |
57 | puts(""); |
58 | puts(""); |
58 | puts("The following output types are known:"); |
59 | puts("The following output types are known:"); |
59 | puts(" HTML (default)"); |
60 | puts(" HTML (default)"); |
60 | puts(" HTML4"); |
61 | puts(" HTML4"); |
61 | puts(" ASCII"); |
62 | puts(" ASCII"); |
|
|
63 | puts(" RTF"); |
62 | } |
64 | } |
63 | |
65 | |
64 | void print_version(void) |
66 | void print_version(void) |
65 | { |
67 | { |
66 | printf("Version %s\n",VERSION); |
68 | printf("Version %s\n",VERSION); |
… | |
… | |
174 | psiconv_gen_html(f,file); |
176 | psiconv_gen_html(f,file); |
175 | else if (! strcmp(type,"HTML4")) |
177 | else if (! strcmp(type,"HTML4")) |
176 | psiconv_gen_html4(f,file); |
178 | psiconv_gen_html4(f,file); |
177 | else if (! strcmp(type,"ASCII")) |
179 | else if (! strcmp(type,"ASCII")) |
178 | psiconv_gen_txt(f,file); |
180 | psiconv_gen_txt(f,file); |
|
|
181 | else if (! strcmp(type,"RTF")) |
|
|
182 | psiconv_gen_rtf(f,file); |
|
|
183 | else if (! strcmp(type,"IMAGE")) |
|
|
184 | psiconv_gen_image(f,file); |
179 | else { |
185 | else { |
180 | fprintf(stderr,"Unknown output type: `%s'\n",type); |
186 | fprintf(stderr,"Unknown output type: `%s'\n",type); |
181 | exit(1); |
187 | exit(1); |
182 | } |
188 | } |
183 | |
189 | |