Changeset 21214

Show
Ignore:
Timestamp:
02.12.2009 14:45:20 (10 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

Files:
1 modified

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;