mirror of
https://github.com/nasa/trick.git
synced 2025-02-02 01:08:09 +00:00
#295 Fix %imports with "include" in the path
This commit is contained in:
parent
56376215d5
commit
9e28d4094c
@ -394,7 +394,7 @@ sub process_file($$) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( $exclude == 0 ) {
|
if ( $exclude == 0 ) {
|
||||||
if ( $file_name =~ /include\/[^\.]+\.[^\.]+\"/ ) {
|
if ( $file_name =~ /include\/[^\.\/]+\.[^\.]+\"/ ) {
|
||||||
$file_name =~ s/(.*)include\/([^\.]+\.)[^\.]+\"/${1}swig\/${2}i\"/ ;
|
$file_name =~ s/(.*)include\/([^\.]+\.)[^\.]+\"/${1}swig\/${2}i\"/ ;
|
||||||
} elsif ( $file_name =~ /\/([^\.\/]+\.)[^\.]+\"/ ) {
|
} elsif ( $file_name =~ /\/([^\.\/]+\.)[^\.]+\"/ ) {
|
||||||
$file_name =~ s/\/([^\.\/]+\.)[^\.]+\"/\/swig\/${1}i\"/ ;
|
$file_name =~ s/\/([^\.\/]+\.)[^\.]+\"/\/swig\/${1}i\"/ ;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user