#295 Fix %imports with "include" in the path

This commit is contained in:
Derek Bankieris 2016-08-26 13:02:11 -05:00
parent 56376215d5
commit 9e28d4094c

View File

@ -394,7 +394,7 @@ sub process_file($$) {
}
if ( $exclude == 0 ) {
if ( $file_name =~ /include\/[^\.]+\.[^\.]+\"/ ) {
if ( $file_name =~ /include\/[^\.\/]+\.[^\.]+\"/ ) {
$file_name =~ s/(.*)include\/([^\.]+\.)[^\.]+\"/${1}swig\/${2}i\"/ ;
} elsif ( $file_name =~ /\/([^\.\/]+\.)[^\.]+\"/ ) {
$file_name =~ s/\/([^\.\/]+\.)[^\.]+\"/\/swig\/${1}i\"/ ;