summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
}