Re: package built with MakeMaker: possible i386ism?
Joey Hess wrote:
> Raphael Hertzog wrote:
> > They aren't useful, you can safely remove them, I do that in all modules
> > I'm maintaining :
> > find ${TMP} -type f -name .packlist | xargs -r rm
>
> You do realize don't you, that this only deletes the file, not the
> i386-linux (or whatever arch you built it in) directory it was in.
>
> I'm using this to kill them both:
>
> find debian/tmp -type f -name .packlist | xargs rm
> -find debian/tmp/usr/lib -type d | xargs rmdir -p --ignore-fail-on-non-empty
You could use find's -empty test here, and drop the flag to rmdir:
find debian/tmp -type f -name .packlist | xargs rm
find debian/tmp/usr/lib -type d -empty | xargs rmdir -p
Richard Braakman
Reply to: