copy or xinstall? directory -exclude subdirectory
Mark Brethen
mark.brethen at gmail.com
Thu Dec 29 18:48:39 PST 2011
On Dec 23, 2011, at 1:48 AM, Joshua Root wrote:
> On 2011-12-23 14:20 , Mark Brethen wrote:
>> Can either the copy or xinstall extension copy the contents of a directory, excluding certain files or subdirectories?
>
> No, you'd need to use something like fs-traverse to do that in Tcl. This
> is one case where shelling out to run e.g. rsync could result in more
> concise code and possibly even be faster.
>
> - Josh
Something like:
spawn rsync --no-perms --exclude "/regressions/***" ${worksrcpath}/packages/ ${sharedir}/packages/
Mark
More information about the macports-dev
mailing list