From ade4a54a1601f3465fcbf4ab269a572fe76b1775 Mon Sep 17 00:00:00 2001 From: Natanael Copa <ncopa@alpinelinux.org> Date: Fri, 24 Oct 2008 10:00:46 +0000 Subject: [PATCH] remove empty dirs after doc subpackages --- abuild | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/abuild b/abuild index 04613ee113fa..ea687fe52ea3 100755 --- a/abuild +++ b/abuild @@ -190,6 +190,10 @@ doc() { mv "$pkgdir/usr/share/$i" "$subpkgdir/usr/share/" fi done + + # remove if empty, ignore error (not empty) + rmdir "$pkgdir/usr/share" "$pkgdir/usr" 2>/dev/null + [ -d "$subpkgdir/usr/share/man" ] && depends="man" return 0 } -- GitLab