Ignore:
Timestamp:
Dec 2, 2013, 3:29:03 PM (5 years ago)
Author:
michaelld@…
Message:

octave 1.0 PortGroup: in post-extract when renaming the worksrcdir to be the octave module name: work-around for case-insensitive file systems when the extract directory name is the same as the octave module name except for at least one letter case; should always work no matter if the file system is case-insensitive or case-sensitive.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/octave-1.0.tcl

    r114074 r114205  
    8181    set worksrcdir_name [exec /bin/ls ${workpath} | grep -v -E "^\\."]
    8282    if {[string equal ${worksrcdir_name} ${octave.module}] == 0} {
    83         move ${workpath}/${worksrcdir_name} ${workpath}/${octave.module}
     83
     84        # work-around for case-insensitive file systems when the
     85        # extract directory name is the same as the octave module name
     86        # except for letter case; should always work no matter if the
     87        # file system is case-insensitive or case-sensitive.
     88
     89        move ${workpath}/${worksrcdir_name} ${workpath}/tmp-${worksrcdir_name}
     90        move ${workpath}/tmp-${worksrcdir_name} ${workpath}/${octave.module}
     91
    8492    }
    85 
    8693}
    8794
Note: See TracChangeset for help on using the changeset viewer.