Changeset 11104


Ignore:
Timestamp:
2006-01-26T11:42:00+13:00 (18 years ago)
Author:
mdewsnip
Message:

A couple of fixes for handling resource bundles, and for handling files not in CVS.

File:
1 edited

Legend:

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

    r11056 r11104  
    541541
    542542    # Check that the source file is up to date
     543    # The "2>/dev/null" is very important! If it is missing this will never return when run from the receptionist
    543544    # unless ($translation_file_is_not_in_cvs) {
    544     my $source_file_cvs_status = `cd $gsdl_root_directory; cvs -d $anonymous_cvs_root update $source_file`;
     545    my $source_file_cvs_status = `cd $gsdl_root_directory; cvs -d $anonymous_cvs_root update $source_file 2>/dev/null`;
    545546    if ($source_file_cvs_status =~ /^C /) {
    546547        &throw_fatal_error("Source file $source_file_path conflicts with the repository.");
     
    10871088
    10881089    # Simple: just remove string key
    1089     $chunk_text =~ s/^(\S+?)://;
     1090    $chunk_text =~ s/^(\S+?):(\s*)//;
    10901091    $chunk_text =~ s/(\s*)$//;  # Remove any nasty whitespace, carriage returns etc.
     1092    $chunk_text =~ s/(\s*)\#\s+Updated\s+(\d?\d-\D\D\D-\d\d\d\d)\s*$//i;
    10911093
    10921094    return $chunk_text;
Note: See TracChangeset for help on using the changeset viewer.