1 # This hooks removes empty dirs and warns about them.
4 if [ -d "${PKGDESTDIR}" ]; then
5 find "${PKGDESTDIR}" -mindepth 1 -type d
-empty -print -delete|
sort -r|
while read -r f
; do
6 _dir
="${f##${PKGDESTDIR}}"
7 msg_warn
"$pkgver: removed empty dir: ${_dir}\n"