Ticket #59111: octave-1.0.tcl.diff

File octave-1.0.tcl.diff, 1.6 KB (added by Schamschula (Marius Schamschula), 5 years ago)
  • _resources/port1.0/group/octave-1.0.tcl

    old new  
    110110    # rename the effective worksrcdir to always be ${octave.module}
    111111
    112112    set worksrcdir_name [exec /bin/ls ${workpath} | grep -v -E "^\\."]
    113     if {[string equal ${worksrcdir_name} ${octave.module}] == 0} {
    114         # work-around for case-insensitive file systems when the
    115         # extract directory name is the same as the octave module name
    116         # except for letter case; should always work no matter if the
    117         # file system is case-insensitive or case-sensitive.
    118 
    119         move ${workpath}/${worksrcdir_name} ${workpath}/tmp-${worksrcdir_name}
    120         move ${workpath}/tmp-${worksrcdir_name} ${workpath}/${octave.module}
    121     }
     113    if {[exec /bin/ls ${workpath} | grep -v -E "^\\." | awk "END \{print NR\}"] == 2} {
     114        delete ${workpath}/${octave.module}
     115        move [glob ${workpath}/*-${version}] ${workpath}/${octave.module}
     116    }
     117#     if {[string equal ${worksrcdir_name} ${octave.module}] == 0} {
     118#         # work-around for case-insensitive file systems when the
     119#         # extract directory name is the same as the octave module name
     120#         # except for letter case; should always work no matter if the
     121#         # file system is case-insensitive or case-sensitive.
     122#
     123#         move ${workpath}/${worksrcdir_name} ${workpath}/tmp-${worksrcdir_name}
     124#         move ${workpath}/tmp-${worksrcdir_name} ${workpath}/${octave.module}
     125#     }
    122126}
    123127
    124128configure.universal_args-delete --disable-dependency-tracking