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
4dd043a5
Commit
4dd043a5
authored
Nov 30, 2010
by
André Hentschel
Committed by
Alexandre Julliard
Dec 01, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemaker: Fix current directory recognition.
Also fixed some comments
parent
a4b0152c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
winemaker
tools/winemaker
+5
-4
No files found.
tools/winemaker
View file @
4dd043a5
...
...
@@ -1732,12 +1732,12 @@ sub fix_file_and_directory_names($)
next
if
(
$new_name
!~
/(^makefile|\.(c|cpp|h|rc))$/i
);
# Only all lowercase extensions are supported (because of
# rules like '.c.o:'.
# rules like '.c.o:'
)
.
$new_name
=~
s/\.C$/.c/
;
$new_name
=~
s/\.cpp$/.cpp/i
;
$warn
=
1
if
(
$new_name
=~
s/\.cxx$/.cpp/i
);
$new_name
=~
s/\.rc$/.rc/i
;
# And this last one is to avoid confusion
t
hen running make
# And this last one is to avoid confusion
w
hen running make
$warn
=
1
if
(
$new_name
=~
s/^makefile$/makefile.win/i
);
}
...
...
@@ -1748,7 +1748,7 @@ sub fix_file_and_directory_names($)
$new_name
=
lc
$new_name
;
}
#
autoconf and make do
n't support these characters well
#
make does
n't support these characters well
$new_name
=~
s/[ \$]/_/g
;
# And finally, perform the renaming
...
...
@@ -1791,6 +1791,7 @@ sub search_from($$)
my
$path
=
$_
[
1
];
my
$real_path
=
""
;
$dirname
=~
s/(\.\/)+//
;
if
(
$dirname
eq
""
or
$dirname
eq
"."
or
$dirname
eq
"./"
)
{
$dirname
=
cwd
;
}
elsif
(
$dirname
!~
m
+^/+
)
{
...
...
@@ -1860,7 +1861,7 @@ sub get_real_include_name($$$$$)
my
$project
=
$_
[
3
];
my
$target
=
$_
[
4
];
if
(
$filename
=~
/^([a-zA-Z]:)?[\/
]/
or
$filename
=~
/^[a-zA-Z]:[\/
]?/
)
{
if
(
$filename
=~
/^([a-zA-Z]:)?[\/
\\]/
or
$filename
=~
/^[a-zA-Z]:[\/\\
]?/
)
{
# This is not a relative path, we cannot make any check
my
$warning
=
"path:$filename"
;
if
(
!
defined
$warnings
{
$warning
})
{
...
...
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