summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2008-10-24 10:00:46 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2008-10-24 10:00:46 +0000
commitade4a54a1601f3465fcbf4ab269a572fe76b1775 (patch)
treea5e3aa379cf19a6e9d7e61c8cf007d88a2460291
parentee609dab73e5f7aec38213b57b2fcce645d20286 (diff)
downloadabuild-ade4a54a1601f3465fcbf4ab269a572fe76b1775.tar.gz
abuild-ade4a54a1601f3465fcbf4ab269a572fe76b1775.tar.bz2
abuild-ade4a54a1601f3465fcbf4ab269a572fe76b1775.tar.xz
abuild-ade4a54a1601f3465fcbf4ab269a572fe76b1775.zip
remove empty dirs after doc subpackages
-rwxr-xr-xabuild4
1 files changed, 4 insertions, 0 deletions
diff --git a/abuild b/abuild
index 04613ee..ea687fe 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
}