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 | # } |