Ignore:
Timestamp:
2009-02-01T14:36:22+13:00 (15 years ago)
Author:
davidb
Message:

Modifications for incremental building to support files that need to be deleted

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/dbutil.pm

    r17476 r18441  
    320320  my $infodb_map = shift(@_);
    321321
    322   open (PIPEIN, "db2txt \"$infodb_file_path\" |") || die "couldn't open pipe from db2txt\n";
     322  open (PIPEIN, "db2txt \"$infodb_file_path\" |") || die "couldn't open pipe from db2txt \$infodb_file_path\"\n";
    323323  my $infodb_line = "";
    324324  my $infodb_key = "";
     
    340340      $infodb_value .= $infodb_line;
    341341    }
     342  }
     343
     344  close (PIPEIN);
     345}
     346
     347sub read_infodb_keys_gdbm
     348{
     349  my $infodb_file_path = shift(@_);
     350  my $infodb_map = shift(@_);
     351
     352  open (PIPEIN, "gdbmkeys \"$infodb_file_path\" |") || die "couldn't open pipe from gdbmkeys \$infodb_file_path\"\n";
     353  my $infodb_line = "";
     354  my $infodb_key = "";
     355  my $infodb_value = "";
     356  while (defined ($infodb_line = <PIPEIN>))
     357  {
     358      chomp $infodb_line; # remove end of line
     359
     360      $infodb_map->{$infodb_line} = 1;
    342361  }
    343362
Note: See TracChangeset for help on using the changeset viewer.