version 1.1, 2011/11/26 19:54:13 |
version 1.2, 2011/11/27 11:46:44 |
|
|
} while (/* CONSTCOND */0) |
} while (/* CONSTCOND */0) |
|
|
static int indexhtml(char *); |
static int indexhtml(char *); |
|
#if 0 |
static int jobstart(const char *, const char *, pid_t *); |
static int jobstart(const char *, const char *, pid_t *); |
static int jobwait(pid_t); |
static int jobwait(pid_t); |
|
#endif |
static int manup(const struct manpaths *, const char *); |
static int manup(const struct manpaths *, const char *); |
static int mkpath(char *, mode_t, mode_t); |
static int mkpath(char *, mode_t, mode_t); |
static int treecpy(char *, char *); |
static int treecpy(char *, char *); |
|
|
return(rc); |
return(rc); |
} |
} |
|
|
|
#if 0 |
/* |
/* |
* Clean up existing child. |
* Clean up existing child. |
* Return 1 if cleaned up fine (or none was started) and 0 otherwise. |
* Return 1 if cleaned up fine (or none was started) and 0 otherwise. |
Line 252 jobstart(const char *dst, const char *src, pid_t *pid) |
|
Line 255 jobstart(const char *dst, const char *src, pid_t *pid) |
|
exit(EXIT_FAILURE); |
exit(EXIT_FAILURE); |
/* NOTREACHED */ |
/* NOTREACHED */ |
} |
} |
|
#endif |
|
|
/* |
/* |
* Pass over the recno database and re-create HTML pages if they're |
* Pass over the recno database and re-create HTML pages if they're |
Line 292 indexhtml(char *dst) |
|
Line 296 indexhtml(char *dst) |
|
|
|
xstrlcat(dst, "/", MAXPATHLEN); |
xstrlcat(dst, "/", MAXPATHLEN); |
xstrlcat(dst, f, MAXPATHLEN); |
xstrlcat(dst, f, MAXPATHLEN); |
xstrlcat(dst, ".html", MAXPATHLEN); |
/*xstrlcat(dst, ".html", MAXPATHLEN);*/ |
|
|
if (-1 == (rc = isnewer(dst, f))) { |
if (-1 == (rc = isnewer(dst, f))) { |
fprintf(stderr, "%s: Manpage missing\n", f); |
fprintf(stderr, "%s: Manpage missing\n", f); |
Line 310 indexhtml(char *dst) |
|
Line 314 indexhtml(char *dst) |
|
} |
} |
|
|
*d = '/'; |
*d = '/'; |
if ( ! jobstart(dst, f, &pid)) |
|
|
if ( ! filecpy(dst, f)) |
break; |
break; |
|
|
|
/*if ( ! jobstart(dst, f, &pid)) |
|
break;*/ |
if (verbose) |
if (verbose) |
printf("%s\n", dst); |
printf("%s\n", dst); |
} |
} |
Line 320 indexhtml(char *dst) |
|
Line 328 indexhtml(char *dst) |
|
|
|
if (c < 0) |
if (c < 0) |
perror(fname); |
perror(fname); |
if ( ! jobwait(pid)) |
/*if ( ! jobwait(pid)) |
c = -1; |
c = -1;*/ |
|
|
return(1 == c ? 1 : -1); |
return(1 == c ? 1 : -1); |
} |
} |