diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2008-10-24 10:00:46 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2008-10-24 10:00:46 +0000 |
commit | ade4a54a1601f3465fcbf4ab269a572fe76b1775 (patch) | |
tree | a5e3aa379cf19a6e9d7e61c8cf007d88a2460291 | |
parent | ee609dab73e5f7aec38213b57b2fcce645d20286 (diff) | |
download | abuild-ade4a54a1601f3465fcbf4ab269a572fe76b1775.tar.gz abuild-ade4a54a1601f3465fcbf4ab269a572fe76b1775.tar.bz2 abuild-ade4a54a1601f3465fcbf4ab269a572fe76b1775.tar.xz abuild-ade4a54a1601f3465fcbf4ab269a572fe76b1775.zip |
remove empty dirs after doc subpackages
-rwxr-xr-x | abuild | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 } |