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!
_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev