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
3fafafa9
Commit
3fafafa9
authored
Apr 23, 2001
by
Francois Gouget
Committed by
Alexandre Julliard
Apr 23, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Files with special characters may not have been renamed. Try to match
both forms.
parent
faa35949
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
winemaker
tools/winemaker
+12
-4
No files found.
tools/winemaker
View file @
3fafafa9
...
...
@@ -1127,10 +1127,20 @@ sub search_from
$dirname
=
dirname
(
$dirname
)
.
"/"
;
$real_path
.=
"../"
;
}
else
{
# The file/directory may have been renamed before. Also try to
# match the renamed file.
my
$renamed
=
$component
;
$renamed
=~
s/[ \$]/_/g
;
if
(
$renamed
eq
$component
)
{
undef
$renamed
;
}
my
$directory
=
get_directory_contents
$dirname
;
my
$found
;
foreach
$dentry
(
@$directory
)
{
if
(
$dentry
=~
/^$component$/i
)
{
if
(
$dentry
=~
/^$component$/i
or
(
defined
$renamed
and
$dentry
=~
/^$renamed$/i
)
)
{
$dirname
.=
"$dentry/"
;
$real_path
.=
"$dentry/"
;
$found
=
1
;
...
...
@@ -1175,14 +1185,12 @@ sub get_real_include_name
}
}
else
{
# Here's how we proceed:
# - compute the 'renamed' filename (see renaming phase)
# - split the filename we look for into its components
# - then for each directory in the include path
# - trace the directory components starting from that directory
# - if we fail to find a match at any point then continue with
# the next directory in the include path
# - otherwise, rejoice, our quest is over.
$filename
=~
s/[ \$]/_/g
;
my
@file_components
=
split
/[\/\\]+/
,
$filename
;
#print " Searching for $filename from @$project[$P_PATH]\n";
...
...
@@ -1583,7 +1591,7 @@ sub generate_spec_file
}
my
$rcname
=
@
{
@$target
[
$T_SOURCES_RC
]}[
0
];
$rcname
=~
s
+\.
rc
$+
+
i
;
$rcname
=~
s
+
([
^/\
w
])
+\\
\
1
+
g
;
$rcname
=~
s
+
([
^/\
w
])
+\\
$
1
+
g
;
print
FILEO
"rsrc $rcname.res\n"
;
}
print
FILEO
"\n"
;
...
...
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