]> jspc29.x-matter.uni-frankfurt.de Git - trb3.git/commitdiff
Base: create_project: allow whitespace in prj statements at end of line...
authorAndreas Neiser <neiser@kph.uni-mainz.de>
Mon, 12 Jan 2015 16:45:33 +0000 (17:45 +0100)
committerAndreas Neiser <neiser@kph.uni-mainz.de>
Mon, 12 Jan 2015 16:45:33 +0000 (17:45 +0100)
base/create_project.pl

index 9a20899a9768f16e42078f008caa84856b528070..93fed0af8feeebb3994025645bc257692a5e996a 100755 (executable)
@@ -20,11 +20,11 @@ sub parsePRJ {
    open FH, "<" , $input;
    while (my $line = <FH>) {
       chomp $line;
-      if ($line =~ m/^\s*set_option -([^\s]+)\s+"?([^"]+)"?$/) {
+      if ($line =~ m/^\s*set_option -([^\s]+)\s+"?([^"]+)"?\s*$/) {
          $options->{$1} = $2;
       }
       
-      if ($line =~ m/^\s*add_file -(vhdl|verilog|fpga_constraint)( -lib "?([^"\s]+)"?|)? "?([^"]+)"?$/g) {
+      if ($line =~ m/^\s*add_file -(vhdl|verilog|fpga_constraint)( -lib "?([^"\s]+)"?|)? "?([^"]+)"?\s*$/g) {
          push @files, [$3, $4];
       }