hooks/post-install/remove-libtool: make sure that PKGDESTDIR exists.

This commit is contained in:
Juan RP 2014-04-02 12:06:27 +02:00
parent dfcc7e5da5
commit 8fcb0e644a
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# This hook removes libtool archives (.la) unless $keep_libtool_archives is set.
hook() {
if [ -z "$keep_libtool_archives" ]; then
if [ -z "$keep_libtool_archives" -a -d "${PKGDESTDIR}" ]; then
find ${PKGDESTDIR} -type f -name *.la -delete
fi
}