auto remove empty /usr/share dir
authorMike Frysinger <vapier@gentoo.org>
Thu, 18 Nov 2010 21:25:58 +0000 (16:25 -0500)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 24 Nov 2010 21:14:33 +0000 (22:14 +0100)
commit68ad6d4ee07aa8b800a0ec3f25f61d0177c43d40
tree2af22cf9946b7d4c99e2dcccdd31c0850cb1f755
parent7dccbc44a84f371694ab7b38833908125df315d9
auto remove empty /usr/share dir

Often times, the only reason /usr/share exists is because of documentation
installed into it.  So once we're done cleaning the docs, attempt to rmdir
/usr/share.  If it's empty, things will work out nicely.

[Peter: use make infrastructure to ignore errors rather than shell]
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Makefile