xinstal not making directories
Bradley Giesbrecht
brad at pixilla.com
Fri Feb 27 06:38:10 PST 2009
On Feb 27, 2009, at 4:52 AM, Scott Haneda wrote:
> On Feb 27, 2009, at 3:50 AM, Joshua Root wrote:
>> Scott Haneda wrote:
>>> # Create 'logs' directory in ASSP base
>>> xinstall -d -o _assp -g _assp -m 0755 ${destroot}${assp_base}/logs
>>>
>>> That will do nothing, unless I put something in it:
>>>
>>> xinstall -m 0644 ${worksrcpath}/mod_inst.pl
>>> ${destroot}${assp_base}/logs/mod_inst.pl
>>>
>>> How can I create an empty directory in MacPorts?
>>> Is this correct behavior?
>>
>> Empty directories are deleted at the end of the destroot phase unless
>> you use destroot.keepdirs. See the Guide.
>
>
> Handy, thanks.
> I am doing this in my destroot phase
> set empty_dirs {docs errors logs notes notspam okmail pb
> quarantine spam}
> foreach empty_dir $empty_dirs {
> ui_info " MY DEBUG: Making empty dir at ${destroot}$
> {assp_base}/$empty_dir"
> xinstall -d -o _assp -g _assp -m 0755 ${destroot}${assp_base}/
> $empty_dir
> }
foreach empty_dir $empty_dirs {
ui_info " MY DEBUG: Making empty dir at ${destroot}$
{assp_base}/$empty_dir"
xinstall -d -o _assp -g _assp -m 0755 ${destroot}${assp_base}/
$empty_dir
destroot.keepdirs-append ${destroot}${assp_base}/${empty_dir}
}
// Brad
More information about the macports-users
mailing list