convert_swig does not find header file correctly if there is a comment on the same line

Added a line to remove trailing spaces after removing the quotes and comments from
included files.

refs #129
This commit is contained in:
Alex Lin 2015-09-24 09:28:36 -05:00
parent f5b30a4841
commit a1bf1c31d4

View File

@ -233,6 +233,7 @@ sub process_file() {
if ( /^(\s*\#\s*include\s+)([^\n]+)/ ) {
my ( $include ) = $1 ;
my ( $file_name ) = $2 ;
$file_name =~ s/\s+$// ;
if ( $file_name !~ /\</ ) {
if ( $file_name !~ /\"sim_services/ and $file_name !~ /\"trick_utils/ and $file_name !~ /\"trick\//) {
my $exclude = 0 ;