66 |
*/ |
*/ |
67 |
int w32 = W32; /* Windows32 environment */ |
int w32 = W32; /* Windows32 environment */ |
68 |
const char *www = "http://www.gnu.org/software/global/"; |
const char *www = "http://www.gnu.org/software/global/"; |
|
const char *include_header; |
|
69 |
int file_count = 0; |
int file_count = 0; |
70 |
int sep = '/'; |
int sep = '/'; |
71 |
const char *save_config; |
const char *save_config; |
124 |
const char *gtagslabel; |
const char *gtagslabel; |
125 |
const char *title; |
const char *title; |
126 |
const char *xhtml_version = "1.0"; |
const char *xhtml_version = "1.0"; |
127 |
|
const char *insert_header; /* --insert-header=<file> */ |
128 |
|
const char *insert_footer; /* --insert-footer=<file> */ |
129 |
|
|
130 |
/* |
/* |
131 |
* Constant values. |
* Constant values. |
239 |
{"id", required_argument, NULL, 1}, |
{"id", required_argument, NULL, 1}, |
240 |
{"nocgi", no_argument, NULL, 1}, |
{"nocgi", no_argument, NULL, 1}, |
241 |
{"no-map-file", no_argument, &no_map_file, 1}, |
{"no-map-file", no_argument, &no_map_file, 1}, |
242 |
|
{"insert-header", required_argument, NULL, 1}, |
243 |
|
{"insert-footer", required_argument, NULL, 1}, |
244 |
{"statistics", no_argument, &statistics, 1}, |
{"statistics", no_argument, &statistics, 1}, |
245 |
{"style-sheet", required_argument, NULL, 1}, |
{"style-sheet", required_argument, NULL, 1}, |
246 |
{"version", no_argument, &show_version, 1}, |
{"version", no_argument, &show_version, 1}, |
656 |
fputs_nl(gen_frameset_end(), op); |
fputs_nl(gen_frameset_end(), op); |
657 |
} else { |
} else { |
658 |
fputs_nl(body_begin, op); |
fputs_nl(body_begin, op); |
659 |
|
if (insert_header) |
660 |
|
fputs(gen_insert_header(TOPDIR), op); |
661 |
fputs(index, op); |
fputs(index, op); |
662 |
|
if (insert_footer) |
663 |
|
fputs(gen_insert_footer(TOPDIR), op); |
664 |
fputs_nl(body_end, op); |
fputs_nl(body_end, op); |
665 |
} |
} |
666 |
fputs_nl(gen_page_end(), op); |
fputs_nl(gen_page_end(), op); |
685 |
die("cannot make file '%s'.", file); |
die("cannot make file '%s'.", file); |
686 |
fputs_nl(gen_page_begin(title, TOPDIR, 0), op); |
fputs_nl(gen_page_begin(title, TOPDIR, 0), op); |
687 |
fputs_nl(body_begin, op); |
fputs_nl(body_begin, op); |
688 |
|
if (insert_header) |
689 |
|
fputs(gen_insert_header(TOPDIR), op); |
690 |
fputs(index, op); |
fputs(index, op); |
691 |
|
if (insert_footer) |
692 |
|
fputs(gen_insert_footer(TOPDIR), op); |
693 |
fputs_nl(body_end, op); |
fputs_nl(body_end, op); |
694 |
fputs_nl(gen_page_end(), op); |
fputs_nl(gen_page_end(), op); |
695 |
fclose(op); |
fclose(op); |
861 |
char command[MAXFILLEN]; |
char command[MAXFILLEN]; |
862 |
const char *_; |
const char *_; |
863 |
|
|
|
if (include_header) { |
|
|
strbuf_puts_nl(sb, include_header); |
|
|
strbuf_puts_nl(sb, hr); |
|
|
} |
|
864 |
strbuf_puts(sb, title_begin); |
strbuf_puts(sb, title_begin); |
865 |
strbuf_puts(sb, title); |
strbuf_puts(sb, title); |
866 |
strbuf_puts_nl(sb, title_end); |
strbuf_puts_nl(sb, title_end); |
1508 |
; /* --gtagslabel is estimated only once. */ |
; /* --gtagslabel is estimated only once. */ |
1509 |
else if (!strcmp("style-sheet", long_options[option_index].name)) |
else if (!strcmp("style-sheet", long_options[option_index].name)) |
1510 |
style_sheet = optarg; |
style_sheet = optarg; |
1511 |
|
else if (!strcmp("insert-header", long_options[option_index].name)) |
1512 |
|
insert_header = optarg; |
1513 |
|
else if (!strcmp("insert-footer", long_options[option_index].name)) |
1514 |
|
insert_footer = optarg; |
1515 |
break; |
break; |
1516 |
case 'a': |
case 'a': |
1517 |
aflag++; |
aflag++; |
1571 |
break; |
break; |
1572 |
} |
} |
1573 |
} |
} |
1574 |
|
if (insert_header && !test("fr", insert_header)) |
1575 |
|
die("page header file '%s' not found.", insert_header); |
1576 |
|
if (insert_footer && !test("fr", insert_footer)) |
1577 |
|
die("page footer file '%s' not found.", insert_footer); |
1578 |
if (no_map_file) |
if (no_map_file) |
1579 |
map_file = 0; |
map_file = 0; |
1580 |
argc -= optind; |
argc -= optind; |