Commit ade4a54a authored by Natanael Copa's avatar Natanael Copa

remove empty dirs after doc subpackages

parent ee609dab
...@@ -190,6 +190,10 @@ doc() { ...@@ -190,6 +190,10 @@ doc() {
mv "$pkgdir/usr/share/$i" "$subpkgdir/usr/share/" mv "$pkgdir/usr/share/$i" "$subpkgdir/usr/share/"
fi fi
done done
# remove if empty, ignore error (not empty)
rmdir "$pkgdir/usr/share" "$pkgdir/usr" 2>/dev/null
[ -d "$subpkgdir/usr/share/man" ] && depends="man" [ -d "$subpkgdir/usr/share/man" ] && depends="man"
return 0 return 0
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment