On 2020/03/06 18:09, Thomas Frohwein wrote:
> >
> > +# Fix dos line-endings in files needing patches
> > +#pre-patch:
> > +# @cd ${WRKSRC} && perl -i -pe 's/\r$$//' [...]
> > +
> > .include <bsd.port.mk>
> >
>
> would the following blanket solution be worthy considering?
>
> #pre-patch:
> # @cd ${WRKSRC} && find . -type f | xargs perl -i -pe 's/\r$$//'
Not a fan of that, it's too easy to mangle binary files, and will be a lot of
io running the find in some cases. better to target it on the files that need it.
No comments:
Post a Comment