version 1.237, 2017/01/11 17:39:53 |
version 1.239, 2017/01/27 01:04:25 |
Line 872 filescan(const char *file) |
|
Line 872 filescan(const char *file) |
|
} |
} |
|
|
/* |
/* |
|
* In test mode or when the original name is absolute |
|
* but outside our tree, guess the base directory. |
|
*/ |
|
|
|
if (op == OP_TEST || (start == buf && *start == '/')) { |
|
if (strncmp(buf, "man/", 4) == 0) |
|
start = buf + 4; |
|
else if ((start = strstr(buf, "/man/")) != NULL) |
|
start += 5; |
|
else |
|
start = buf; |
|
} |
|
|
|
/* |
* First try to guess our directory structure. |
* First try to guess our directory structure. |
* If we find a separator, try to look for man* or cat*. |
* If we find a separator, try to look for man* or cat*. |
* If we find one of these and what's underneath is a directory, |
* If we find one of these and what's underneath is a directory, |
Line 1216 mpages_merge(struct dba *dba, struct mparse *mp) |
|
Line 1230 mpages_merge(struct dba *dba, struct mparse *mp) |
|
if (mpage->desc == NULL) |
if (mpage->desc == NULL) |
mpage->desc = mandoc_strdup(mpage->mlinks->name); |
mpage->desc = mandoc_strdup(mpage->mlinks->name); |
|
|
if (warnings && !use_all) |
for (mlink = mpage->mlinks; |
for (mlink = mpage->mlinks; mlink; |
mlink != NULL; |
mlink = mlink->next) |
mlink = mlink->next) { |
|
putkey(mpage, mlink->name, NAME_FILE); |
|
if (warnings && !use_all) |
mlink_check(mpage, mlink); |
mlink_check(mpage, mlink); |
|
} |
|
|
dbadd(dba, mpage); |
dbadd(dba, mpage); |
mlink = mpage->mlinks; |
|
|
|
nextpage: |
nextpage: |
ohash_delete(&strings); |
ohash_delete(&strings); |