xinstal not making directories

Scott Haneda talklists at newgeo.com
Fri Feb 27 04:52:56 PST 2009


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
     }

In order to hold those directories I have had to:
destroot.keepdirs   $destroot$assp_base/docs \
                     $destroot$assp_base/errors \
                     $destroot$assp_base/logs \
                     $destroot$assp_base/notes \
                     $destroot$assp_base/notspam \
                     $destroot$assp_base/okmail \
                     $destroot$assp_base/pb \
                     $destroot$assp_base/quarantine \
                     $destroot$assp_base/spam

Is there some way I can so it in the same loop, so I am only  
maintaining one list?  I tried but of course I only maintain the last  
in the list of dirs.

Maybe I should just drop one line in the foreach and stuff my  
own .turd in there?
--
Scott

* If you contact me off list replace talklists@ with scott@ *







More information about the macports-users mailing list