Ignore:
Timestamp:
2005-06-16T16:29:08+12:00 (19 years ago)
Author:
mdewsnip
Message:

Fix to previous change so it doesn't do silly things if the first macro in the target file doesn't exist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/bin/script/gti.pl

    r10126 r10133  
    976976    my $target_file_chunk_starting_line_number = (split(/-/, $target_file_line_keys[0]))[0];
    977977    while ($target_file_line_number < $target_file_chunk_starting_line_number) {
    978         print TARGET_FILE @$target_file_lines[$target_file_line_number];
     978        my $target_file_line = @$target_file_lines[$target_file_line_number];
     979        last if ($target_file_line =~ /^\# -- Missing translation: /);  # We don't want to get into the macros
     980        print TARGET_FILE $target_file_line;
    979981        $target_file_line_number++;
    980982    }
Note: See TracChangeset for help on using the changeset viewer.