[oe-commits] org.oe.dev autotools bbclass: sync with poky and expand on it
koen commit
oe at amethyst.openembedded.net
Wed Mar 19 20:43:07 UTC 2008
autotools bbclass: sync with poky and expand on it
Author: koen at openembedded.org
Branch: org.openembedded.dev
Revision: 3868e38f68eb9e003284578a01eeda388b9a2e2d
ViewMTN: http://monotone.openembedded.org/revision/info/3868e38f68eb9e003284578a01eeda388b9a2e2d
Files:
1
classes/autotools.bbclass
Diffs:
#
# mt diff -rbc4a8e8d779abed3918fe9ba7d2631eea0d32565 -r3868e38f68eb9e003284578a01eeda388b9a2e2d
#
#
#
# patch "classes/autotools.bbclass"
# from [2c968bfb912e6a0afcfe01128a82f93e3ed4c611]
# to [d5a547cefa5e9958965f5dda7aac45f65e89d575]
#
============================================================
--- classes/autotools.bbclass 2c968bfb912e6a0afcfe01128a82f93e3ed4c611
+++ classes/autotools.bbclass d5a547cefa5e9958965f5dda7aac45f65e89d575
@@ -200,26 +200,40 @@ autotools_stage_all() {
cp -fpPR ${STAGE_TEMP}/${libdir}/* ${STAGING_LIBDIR}
fi
fi
- if [ -d ${STAGE_TEMP}/${datadir}/aclocal ]; then
- install -d ${STAGING_DATADIR}/aclocal
- cp -fpPR ${STAGE_TEMP}/${datadir}/aclocal/* ${STAGING_DATADIR}/aclocal
+
+ #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
if [ "${AUTOTOOLS_NATIVE_STAGE_BINARIES}" = "1" ] ; then
- if [ -d ${STAGE_TEMP}/bin ]; then
- cp -fpPR ${STAGE_TEMP}/bin/*${STAGING_DIR_HOST}/${layout_bindir}
+ #This will remove an empty directory so we can ignore it
+ rmdir ${STAGE_TEMP}/${bindir} || true
+ if [ -d ${STAGE_TEMP}/${bindir} ]; then
+ mkdir -p ${STAGING_DIR_HOST}${layout_bindir}
+ cp -fpPR -t ${STAGING_DIR_HOST}/${layout_bindir} ${STAGE_TEMP}/${bindir}/*
fi
-
- if [ -d ${STAGE_TEMP}/sbin ]; then
- cp -fpPR ${STAGE_TEMP}/sbin/* ${STAGING_DIR_HOST}/${layout_bindir}
+ #This will remove an empty directory so we can ignore it
+ rmdir ${STAGE_TEMP}/${sbindir} || true
+ if [ -d ${STAGE_TEMP}/${sbindir} ]; then
+ mkdir -p ${STAGING_DIR_HOST}${layout_sbindir}
+ cp -fpPR -t ${STAGING_DIR_HOST}/${layout_sbindir} ${STAGE_TEMP}/${sbindir}/*
fi
+ #This will remove an empty directory so we can ignore it
+ rmdir ${STAGE_TEMP}/${base_bindir} || true
+ if [ -d ${STAGE_TEMP}/${base_bindir} ]; then
+ mkdir -p ${STAGING_DIR_HOST}${layout_base_bindir}
+ cp -fpPR -t ${STAGING_DIR_HOST}/${layout_base_bindir} ${STAGE_TEMP}/${base_bindir}/*
+ fi
+ #This will remove an empty directory so we can ignore it
+ rmdir ${STAGE_TEMP}/${base_sbindir} || true
+ if [ -d ${STAGE_TEMP}/${base_sbindir} ]; then
+ mkdir -p ${STAGING_DIR_HOST}${layout_base_sbindir}
+ cp -fpPR -t ${STAGING_DIR_HOST}/${layout_nase_sbindir} ${STAGE_TEMP}/${base_sbindir}/*
+ fi
- if [ -d ${STAGE_TEMP}/usr/bin ]; then
- cp -fpPR ${STAGE_TEMP}/usr/bin/* ${STAGING_DIR_HOST}/${layout_bindir}
- fi
- if [ -d ${STAGE_TEMP}/usr/sbin ]; then
- cp -fpPR ${STAGE_TEMP}/usr/sbin/* ${STAGING_DIR_HOST}/${layout_bindir}
- fi
fi
rm -rf ${STAGE_TEMP}
}
More information about the Openembedded-commits
mailing list