Here's a variant of the above that works with spaces in filenames (but doesn't delete directories that contain only empty directories):
find $ROOT -depth -type d -empty -print0 |xargs -0 rmdir -f
However, does anyone care to submit a patch to the generic-build-script? Igor
Igor,
I'll try out the new script next week with one of my packages, and then I will send such a patch.
Andreas.
