move oldfolder newfolder results in oldfolder/newfolder

Ryan Schmidt ryandesign at macports.org
Wed Feb 15 21:53:09 PST 2012


On Feb 15, 2012, at 19:16, Bradley Giesbrecht wrote:

> It seems that if you use the move macro or file rename on a folder a new folder is created for the target folder and the source is moved _into_ the target.

That would be news to me. Can you provide a portfile that exhibits this behavior?

Here is a portfile that works properly for me:



PortSystem          1.0

name                test
version             1
maintainers         nomaintainer

distfiles

extract.mkdir       yes

configure {
    file mkdir ${worksrcpath}/foo
    move ${worksrcpath}/foo ${worksrcpath}/bar
}






More information about the macports-dev mailing list