Changeset 11519


Ignore:
Timestamp:
2006-03-28T17:05:20+12:00 (18 years ago)
Author:
mdewsnip
Message:

Fixed a bug comparing CVS dates with Update dates.

File:
1 edited

Legend:

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

    r11498 r11519  
    6868
    6969      # Greenstone tutorial exercises
    70       # { 'key' => "tutorials",
    71     # 'file_type' => "greenstone_xml",
    72     # 'source_file' => "gsdl-tutorials/tutorial_en.xml",
    73     # 'target_file' => "gsdl-tutorials/tutorial_{target_language_code}.xml" },
     70      { 'key' => "tutorials",
     71    'file_type' => "greenstone_xml",
     72    'source_file' => "gsdl-tutorials/tutorial_en.xml",
     73    'target_file' => "gsdl-tutorials/tutorial_{target_language_code}.xml" },
    7474
    7575      # Greenstone.org
     
    773773    my $source_chunk_last_update_date = $source_file_key_to_last_update_date_mapping->{$chunk_key};
    774774    my $target_chunk_last_update_date = $target_file_key_to_last_update_date_mapping->{$chunk_key};
    775     if (defined($target_chunk_last_update_date) && &is_date_after($source_chunk_last_update_date, $target_chunk_last_update_date)) {
     775    if (defined($target_chunk_last_update_date) && &is_date_after($source_chunk_last_update_date, $target_chunk_last_update_date)) {
    776776        # &log_message("Chunk with key $chunk_key needs updating.");
    777777        push(@target_file_keys_requiring_updating, $chunk_key);
     
    827827    my $year1 = $date1parts[2];
    828828    if ($year1 < 80) {
    829     $year1 += 100;
     829    $year1 += 2000;
    830830    }
    831831    my $year2 = $date2parts[2];
    832832    if ($year2 < 80) {
    833     $year2 += 100;
     833    $year2 += 2000;
    834834    }
    835835
Note: See TracChangeset for help on using the changeset viewer.