[46696] trunk/dports/www

Ryan Schmidt ryandesign at macports.org
Wed Feb 11 08:44:14 PST 2009


On Feb 11, 2009, at 09:05, Jeremy Lavergne wrote:

>> variant use_osx_docroot conflicts php5 mysql5 requires nodeps  
>> description {Create link in /Library/WebServer/Documents} {
>>    post-destroot {
>>        xinstall -d ${destroot}/Library
>>        xinstall -d ${destroot}/Library/WebServer
>>        xinstall -d ${destroot}/Library/WebServer/Documents
>>        ln -s ${prefix}/www/wikka ${destroot}/Library/WebServer/ 
>> Documents/wikka
>>    }
>> }
>
> I believe xinstall creates parent directories, so that can be  
> shrunk down to just one xinstall line.

I just tried it and you're right. The Guide even says so:


xinstall -d [-o owner] [-g group] [-m mode] directory

     Create a directory including parent directories if necessary.


That's good to know! I was wondering why we didn't have a "mkdir -p"  
facility... I guess "xinstall -d" is it!




More information about the macports-dev mailing list