Alexandre Julliard : c2man: Remove a possible path from the spec file name.
Alexandre Julliard
julliard at winehq.org
Mon Mar 10 14:38:29 CDT 2014
Module: wine
Branch: master
Commit: 4c062b37024221640bd117b3c2027dc9be550587
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4c062b37024221640bd117b3c2027dc9be550587
Author: Alexandre Julliard <julliard at winehq.org>
Date: Mon Mar 10 11:15:04 2014 +0100
c2man: Remove a possible path from the spec file name.
---
tools/c2man.pl | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tools/c2man.pl b/tools/c2man.pl
index f55b1b1..029f460 100755
--- a/tools/c2man.pl
+++ b/tools/c2man.pl
@@ -99,13 +99,14 @@ sub process_extra_comment($);
sub process_spec_file($)
{
my $spec_name = shift;
- my ($dll_name, $dll_ext) = split(/\./, $spec_name);
+ (my $basename = $spec_name) =~ s/.*\///;
+ my ($dll_name, $dll_ext) = split(/\./, $basename);
$dll_ext = "dll" if ( $dll_ext eq "spec" );
my $uc_dll_name = uc $dll_name;
my $spec_details =
{
- NAME => $spec_name,
+ NAME => $basename,
DLL_NAME => $dll_name,
DLL_EXT => $dll_ext,
NUM_EXPORTS => 0,
More information about the wine-cvs
mailing list