hooks/post-install/remove-libtool: make sure that PKGDESTDIR exists.
This commit is contained in:
parent
dfcc7e5da5
commit
8fcb0e644a
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user