Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
84ff0631
Commit
84ff0631
authored
Jun 07, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winapi: Get the list of files from git-ls-files if possible.
parent
32f240bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
28 deletions
+36
-28
options.pm
tools/winapi/options.pm
+36
-28
No files found.
tools/winapi/options.pm
View file @
84ff0631
...
...
@@ -236,38 +236,46 @@ sub parse_files($) {
}
}
if
(
$#c_files
==
-
1
&&
$#h_files
==
-
1
&&
$#paths
==
-
1
)
if
(
$#c_files
==
-
1
&&
$#h_files
==
-
1
&&
$#paths
==
-
1
&&
-
d
".git"
)
{
@paths
=
"."
;
}
if
(
$#paths
!=
-
1
||
$#c_files
!=
-
1
)
{
my
$c_command
=
"find "
.
join
(
" "
,
@paths
,
@c_files
)
.
" -name \\*.c"
;
my
%
found
;
@$c_files
=
sort
(
map
{
s/^\.\/(.*)$/$1/
;
if
(
defined
(
$found
{
$_
}))
{
();
}
else
{
$found
{
$_
}
++
;
$_
;
}
}
split
(
/\n/
,
`$c_command`
));
@$c_files
=
sort
split
/\0/
,
`git ls-files -z \\*.c`
;
@$h_files
=
sort
split
/\0/
,
`git ls-files -z \\*.h`
;
}
else
{
if
(
$#c_files
==
-
1
&&
$#h_files
==
-
1
&&
$#paths
==
-
1
)
{
@paths
=
"."
;
}
if
(
$#paths
!=
-
1
||
$#c_files
!=
-
1
)
{
my
$c_command
=
"find "
.
join
(
" "
,
@paths
,
@c_files
)
.
" -name \\*.c"
;
my
%
found
;
@$c_files
=
sort
(
map
{
s/^\.\/(.*)$/$1/
;
if
(
defined
(
$found
{
$_
}))
{
();
}
else
{
$found
{
$_
}
++
;
$_
;
}
}
split
(
/\n/
,
`$c_command`
));
}
if
(
$#paths
!=
-
1
||
$#h_files
!=
-
1
)
{
my
$h_command
=
"find "
.
join
(
" "
,
@paths
,
@h_files
)
.
" -name \\*.h"
;
my
%
found
;
if
(
$#paths
!=
-
1
||
$#h_files
!=
-
1
)
{
my
$h_command
=
"find "
.
join
(
" "
,
@paths
,
@h_files
)
.
" -name \\*.h"
;
my
%
found
;
@$h_files
=
sort
(
map
{
s/^\.\/(.*)$/$1/
;
if
(
defined
(
$found
{
$_
}))
{
();
}
else
{
$found
{
$_
}
++
;
$_
;
}
}
split
(
/\n/
,
`$h_command`
));
@$h_files
=
sort
(
map
{
s/^\.\/(.*)$/$1/
;
if
(
defined
(
$found
{
$_
}))
{
();
}
else
{
$found
{
$_
}
++
;
$_
;
}
}
split
(
/\n/
,
`$h_command`
));
}
}
my
%
dirs
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment