Re: Installing a tree of files

2019-08-14 Thread Jan Stary
On Aug 11 07:52:34, feine...@logic.at wrote: > Hi, > > to all experienced porters: is there a best practice for installing a whole > tree of files in do-install? > > I have encountered following patterns: > > cp -Rp > tar -czf - -C ... | tar xzf - -C ... > pax -rw > INSTALL_DATA in a for loop

Re: Installing a tree of files

2019-08-13 Thread Klemens Nanni
On Tue, Aug 13, 2019 at 12:08:58AM -0400, Ted Unangst wrote: > Inconveniently, find -exec {} + requires that {} go last, not followed by > destination. Maybe some way to sh around that. Yup, I could work with xargs here, but before doing that I think sthen's point of simply copying trees as a

Re: Installing a tree of files

2019-08-12 Thread Ted Unangst
Stuart Henderson wrote: > On 2019/08/11 13:33, Brian Callahan wrote: > > > > Sure, but do you mind sweeping the tree for this do-install idiom? It's > > probably not in too many places these days, but it's certainly in more > > than just this one port. > > If other ports are being touched can we

Re: Installing a tree of files

2019-08-11 Thread Stuart Henderson
On 2019/08/11 13:33, Brian Callahan wrote: > > Sure, but do you mind sweeping the tree for this do-install idiom? It's > probably not in too many places these days, but it's certainly in more > than just this one port. If other ports are being touched can we have something that avoids a fork for

Re: Installing a tree of files

2019-08-11 Thread Klemens Nanni
On Sun, Aug 11, 2019 at 01:33:18PM -0400, Brian Callahan wrote: > Sure, but do you mind sweeping the tree for this do-install idiom? It's > probably not in too many places these days, but it's certainly in more than > just this one port. I'll do these as I go since they're quite low priority, but

Re: Installing a tree of files

2019-08-11 Thread Brian Callahan
On 8/11/19 12:50 PM, Klemens Nanni wrote: On Sun, Aug 11, 2019 at 09:56:23AM -0400, Brian Callahan wrote: There is this, found for example in games/polymorphable: ${INSTALL_DATA_DIR} ${PREFIX}/share/flare/mods/polymorphable     cd ${WRKSRC} && find * -type d -exec ${INSTALL_DATA_DIR} \

Re: Installing a tree of files

2019-08-11 Thread Klemens Nanni
On Sun, Aug 11, 2019 at 09:56:23AM -0400, Brian Callahan wrote: > There is this, found for example in games/polymorphable: > ${INSTALL_DATA_DIR} ${PREFIX}/share/flare/mods/polymorphable >     cd ${WRKSRC} && find * -type d -exec ${INSTALL_DATA_DIR} \ >    

Re: Installing a tree of files

2019-08-11 Thread Brian Callahan
On 8/11/19 1:52 AM, Ingo Feinerer wrote: Hi, to all experienced porters: is there a best practice for installing a whole tree of files in do-install? I have encountered following patterns: cp -Rp tar -czf - -C ... | tar xzf - -C ... pax -rw INSTALL_DATA in a for loop (works only if you

Installing a tree of files

2019-08-10 Thread Ingo Feinerer
Hi, to all experienced porters: is there a best practice for installing a whole tree of files in do-install? I have encountered following patterns: cp -Rp tar -czf - -C ... | tar xzf - -C ... pax -rw INSTALL_DATA in a for loop (works only if you list all subdirectories (with their subdirs