655 |
if ((FILES = fopen(makepath(distpath, file, NULL), "w")) == NULL) |
if ((FILES = fopen(makepath(distpath, file, NULL), "w")) == NULL) |
656 |
die("cannot open file '%s'.", file); |
die("cannot open file '%s'.", file); |
657 |
|
|
658 |
fputs_nl(gen_page_begin(title_file_index, 0), FILES); |
fputs_nl(gen_page_begin(title_file_index, TOPDIR), FILES); |
659 |
fputs_nl(body_begin, FILES); |
fputs_nl(body_begin, FILES); |
660 |
fputs(header_begin, FILES); |
fputs(header_begin, FILES); |
661 |
fputs(gen_href_begin(NULL, "files", normal_suffix, NULL), FILES); |
fputs(gen_href_begin(NULL, "files", normal_suffix, NULL), FILES); |
765 |
strbuf_reset(sb); |
strbuf_reset(sb); |
766 |
strbuf_puts(sb, path); |
strbuf_puts(sb, path); |
767 |
strbuf_putc(sb, '/'); |
strbuf_putc(sb, '/'); |
768 |
fputs_nl(gen_page_begin(strbuf_value(sb), 1), STDOUT); |
fputs_nl(gen_page_begin(strbuf_value(sb), SUBDIR), STDOUT); |
769 |
fputs_nl(body_begin, STDOUT); |
fputs_nl(body_begin, STDOUT); |
770 |
fprintf(STDOUT, "%s%sroot%s/", header_begin, gen_href_begin(NULL, indexlink, normal_suffix, NULL), gen_href_end()); |
fprintf(STDOUT, "%s%sroot%s/", header_begin, gen_href_begin(NULL, indexlink, normal_suffix, NULL), gen_href_end()); |
771 |
{ |
{ |
984 |
|
|
985 |
snprintf(path, sizeof(path), "%s/%s/%d.%s", distpath, INCS, no, HTML); |
snprintf(path, sizeof(path), "%s/%s/%d.%s", distpath, INCS, no, HTML); |
986 |
INCLUDE = open_file_queue(path); |
INCLUDE = open_file_queue(path); |
987 |
fputs_nl(gen_page_begin(last, 1), INCLUDE); |
fputs_nl(gen_page_begin(last, SUBDIR), INCLUDE); |
988 |
fputs_nl(body_begin, INCLUDE); |
fputs_nl(body_begin, INCLUDE); |
989 |
fputs_nl(verbatim_begin, INCLUDE); |
fputs_nl(verbatim_begin, INCLUDE); |
990 |
{ |
{ |
1028 |
|
|
1029 |
snprintf(path, sizeof(path), "%s/%s/%d.%s", distpath, INCREFS, no, HTML); |
snprintf(path, sizeof(path), "%s/%s/%d.%s", distpath, INCREFS, no, HTML); |
1030 |
INCLUDE = open_file_queue(path); |
INCLUDE = open_file_queue(path); |
1031 |
fputs_nl(gen_page_begin(last, 1), INCLUDE); |
fputs_nl(gen_page_begin(last, SUBDIR), INCLUDE); |
1032 |
fputs_nl(body_begin, INCLUDE); |
fputs_nl(body_begin, INCLUDE); |
1033 |
fputs_nl(gen_list_begin(), INCLUDE); |
fputs_nl(gen_list_begin(), INCLUDE); |
1034 |
{ |
{ |