#1 -o option to specify full output path

closed-accepted
nobody
None
5
2006-11-04
2006-04-21
No

adding the following code to the option processing will allow to specify
the full output path (i.e. directory + name) for the plist file (unless name
is overwritten by pragma output_file) via a "-o" option:

insert at line 207 of 0.4 release:

"o" {
incr i
if {$i < $len} {
set plc(output_folder) [file dirname [file normalize [lindex $args
$i]]]
set plc(output_filename) [file tail [file normalize [lindex $args
$i]]]
} else {
set failed 1
}
}

Discussion

  • Bernard Desgraupes

    Logged In: YES
    user_id=357036

    Hi Jens,

    thanks a lot for the code contribution and the good idea. I
    have incorporated in version 0.5 with a slight modification:
    * if the value of the option is a full path, it is used to
    define the outfolder and the outfile

    * otherwise the value is used a an outfile name and appended
    to the outfolder calculated in the usual manner

    Version 0.5 will be released very soon now.

    I'm resolving this Patch as ACCEPTED and closing now.

    Cheers

    Bernard

     
  • Bernard Desgraupes

    • status: open --> closed-accepted
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks