autotools.bbclass: Handle case where is an empty directory

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4078 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Richard Purdie 2008-03-19 20:19:50 +00:00
parent b26a7c4be9
commit 80ec6694d7
1 changed files with 3 additions and 1 deletions

View File

@ -214,11 +214,13 @@ autotools_stage_all() {
fi
rm -rf ${STAGE_TEMP}/${mandir} || true
rm -rf ${STAGE_TEMP}/${infodir} || true
# This will remove an empty directory so we can ignore it
rmdir ${STAGE_TEMP}/${datadir} || true
if [ -d ${STAGE_TEMP}/${datadir} ]; then
install -d ${STAGING_DATADIR}/
cp -fpPR ${STAGE_TEMP}/${datadir}/* ${STAGING_DATADIR}/
fi
#rm -rf ${STAGE_TEMP}
rm -rf ${STAGE_TEMP}
}
EXPORT_FUNCTIONS do_configure do_install