mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2024-12-26 14:00:56 +00:00
Formerly vpath.c.~8~
This commit is contained in:
parent
7444af63fc
commit
9a1a8d0dc6
1 changed files with 16 additions and 16 deletions
32
vpath.c
32
vpath.c
|
@ -191,24 +191,24 @@ construct_vpath_list (pattern, dirpath)
|
|||
if (len > 1 && p[-1] == '/')
|
||||
--len;
|
||||
|
||||
if (len == 1 && *v == '.')
|
||||
continue;
|
||||
|
||||
v = savestring (v, len);
|
||||
|
||||
/* Verify that the directory actually exists. */
|
||||
|
||||
if (dir_file_exists_p (v, ""))
|
||||
if (len > 1 || *v != '.')
|
||||
{
|
||||
/* It does. Put it in the list. */
|
||||
vpath[elem++] = dir_name (v);
|
||||
free (v);
|
||||
if (len > maxvpath)
|
||||
maxvpath = len;
|
||||
v = savestring (v, len);
|
||||
|
||||
/* Verify that the directory actually exists. */
|
||||
|
||||
if (dir_file_exists_p (v, ""))
|
||||
{
|
||||
/* It does. Put it in the list. */
|
||||
vpath[elem++] = dir_name (v);
|
||||
free (v);
|
||||
if (len > maxvpath)
|
||||
maxvpath = len;
|
||||
}
|
||||
else
|
||||
/* The directory does not exist. Omit from the list. */
|
||||
free (v);
|
||||
}
|
||||
else
|
||||
/* The directory does not exist. Omit from the list. */
|
||||
free (v);
|
||||
|
||||
/* Skip over colons and blanks between entries. */
|
||||
while (*p == ':' || isblank (*p))
|
||||
|
|
Loading…
Reference in a new issue