Changeset 21214


Ignore:
Timestamp:
2009-12-02T14:45:20+13:00 (14 years ago)
Author:
kjdon
Message:

need to make the pharos-imageis dir if not there; imgfile now refers to the full path in the template

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs3-extensions/pharos/trunk/cmdline-api-srcpack/bin/script/pharos-imageis-add.pl

    r21212 r21214  
    8383    my $tmp_dir = &util::get_toplevel_tmp_dir();
    8484    $tmp_dir = &util::filename_cat($tmp_dir,"pharos-imageis");
    85 
    86     my $dstfilename=&util::filename_cat($tmp_dir,,$dstfile);
     85    &util::mk_dir($tmp_dir);
     86    my $dstfilename=&util::filename_cat($tmp_dir,$dstfile);
    8787   
    8888    &util::cp($srcfilename,$dstfilename);
     
    100100    my $line;
    101101    while (defined ($line=<FIN>)) {
    102         $line =~ s@\*\*imgfile\*\*@$dstfile@g;
     102        $line =~ s@\*\*imgfile\*\*@$dstfilename@g;
    103103       
    104104        $add_this_file_content .= $line;
Note: See TracChangeset for help on using the changeset viewer.