Various fixes for cp argument portability
authorChris Larson <chris_larson@mentor.com>
Sat, 16 Oct 2010 03:06:53 +0000 (20:06 -0700)
committerChris Larson <chris_larson@mentor.com>
Fri, 22 Oct 2010 03:28:50 +0000 (20:28 -0700)
58 files changed:
classes/packaged-staging.bbclass
classes/rootfs_rpm.bbclass
classes/sourceipk.bbclass
classes/staging.bbclass
recipes/ant/ant-native_1.7.1.bb
recipes/boost-asio/boost-asio_0.3.7.bb
recipes/busybox/busybox_1.2.1.bb
recipes/busybox/busybox_1.7.2.bb
recipes/docbook-dsssl-stylesheets/docbook-dsssl-stylesheets-native_1.79.bb
recipes/docbook-sgml-dtd/docbook-sgml-dtd-native.inc
recipes/ecj/libecj-bootstrap.inc
recipes/eyeos/eyeos_1.8.7.1.bb
recipes/fbreader/fbreader_0.7.4q.bb
recipes/fbreader/fbreader_0.8.2a.bb
recipes/gnome-mplayer/gecko-mediaplayer_0.9.8.bb
recipes/gnome-mplayer/gecko-mediaplayer_svn.bb
recipes/gpe-icons/gpe-icons.inc
recipes/gpe-icons/gpe-theme-neo_git.bb
recipes/gstreamer/gst-plugin-bc_git.bb
recipes/gstreamer/gst-plugin-gles_git.bb
recipes/gtk-engines/elementary-gtk-theme_1.0.bb
recipes/gtk-engines/elementary-icon-theme_2.3.bb
recipes/havp/havp.inc
recipes/icedtea/icedtea6-native.inc
recipes/jakarta-libs/log4j1.2_1.2.15.bb
recipes/librcf/librcf_0.4.bb
recipes/libtool/libtool-native_2.2.6a.bb
recipes/libtool/libtool-native_2.2.6b.bb
recipes/linux-firmware/linux-firmware_git.bb
recipes/linux-firmware/zd1211-firmware_1.4.bb
recipes/llvm/llvm.inc
recipes/mingw/mingw-runtime-headers.inc
recipes/mingw/mingw-w32api-headers.inc
recipes/mythtv/mythplugins_0.22+fixes.bb
recipes/mythtv/mythplugins_0.23+fixes.bb
recipes/ogre/ogre-egl_svn.bb
recipes/openmoko-3rdparty/thone_0.7.bb
recipes/opkg/update-alternatives-merge.inc
recipes/powervr-drivers/kernel-module-bc_git.bb
recipes/python/python-pygobject_2.20.0.bb
recipes/rocksndiamonds/rocksndiamonds_3.2.0.bb
recipes/rox/rox-filer_2.5.bb
recipes/ruby/ruby-dbus_0.2.1.bb
recipes/shr/gtk-theme.inc
recipes/shr/icon-theme-neo_git.bb
recipes/skype/skype_2.0.0.72.bb
recipes/stage-manager/files/stage-manager
recipes/stage-manager/files/stage-manager-ipkg
recipes/stage-manager/stagemanager-native_0.0.1.bb
recipes/ti/files/dvsdk-rules/Makefile
recipes/ti/gstreamer-ti.inc
recipes/ti/ti-audio-soc-example.inc
recipes/tracker/tracker_0.5.4.bb
recipes/tracker/tracker_0.6.95.bb
recipes/webif/webif_svn.bb
recipes/webkit/arora.inc
recipes/webm/libvpx_0.9.0.bb
recipes/woodstox/woodstox2_2.0.6.bb

index d0aaea1..e968e4d 100644 (file)
@@ -247,7 +247,7 @@ python packagestage_scenefunc () {
         #
         # Copy the stamp files into the main stamps directoy
         #
-        cmd = bb.data.expand("cp -dpR ${WORKDIR}/tstage/stamps/* ${TMPDIR}/stamps/", d)
+        cmd = bb.data.expand("cp -PpR ${WORKDIR}/tstage/stamps/* ${TMPDIR}/stamps/", d)
         try:
             ret = oe_run(d, cmd)
         except RuntimeError:
@@ -495,7 +495,7 @@ python do_package_stage () {
     bb.mkdirhier(destdir)
     # We need to include the package_stage stamp in the staging package so create one
     bb.build.make_stamp("do_package_stage", d)
-    oe_run(d, "cp -dpR %s.do_* %s/" % (stampfn, destdir))
+    oe_run(d, "cp -PpR %s.do_* %s/" % (stampfn, destdir))
 
     pstage_set_pkgmanager(d)
     bb.build.exec_func("staging_helper", d)
index c018a03..2c425ac 100644 (file)
@@ -82,7 +82,7 @@ EOF
                # Copy the packages into the target image
                # Ugly ugly ugly but rpm is braindead and can't see outside the chroot
                # when installing :(
-               cp -r ${DEPLOY_DIR_RPM}/$arch ${IMAGE_ROOTFS}${DEPLOY_DIR_RPM}/
+               cp -R ${DEPLOY_DIR_RPM}/$arch ${IMAGE_ROOTFS}${DEPLOY_DIR_RPM}/
        done
 
        # Uclibc builds don't provide this stuff...
index 182785b..09fc5d5 100644 (file)
@@ -105,7 +105,7 @@ sourceipk_do_create_srcipk() {
 
         # Copy sources for packaging
         mkdir -p $tmp_dir/${SRCIPK_INSTALL_DIR}
-        cp -rLf ${S}/* $tmp_dir/${SRCIPK_INSTALL_DIR}/
+        cp -RLf ${S}/* $tmp_dir/${SRCIPK_INSTALL_DIR}/
 
         if [ ${SRCIPK_INCLUDE_EXTRAFILES} != "0" ]
         then
index 3f4ff8c..3e7adbb 100644 (file)
@@ -23,7 +23,7 @@ package_stagefile_shell() {
                destfile=`echo $srcfile | sed s#${TMPDIR}#${PSTAGE_TMPDIR_STAGE}#`
                destdir=`dirname $destfile`
                mkdir -p $destdir
-               cp -dp $srcfile $destfile
+               cp -Pp $srcfile $destfile
        fi
 }
 
index b4fdb05..ff758c8 100644 (file)
@@ -46,7 +46,7 @@ do_compile() {
 
   mkdir -p build/org/apache/tools/ant/types/conditions
 
-  cp -r src/resources/org build/
+  cp -R src/resources/org build/
   (cd src/main && find . \( -name "*.properties" -or -name "*.xml" -or -name "*.mf" \) -exec cp {} ../../build/{} \;)
 
   echo "VERSION=${PV}" > build/org/apache/tools/ant/version.txt
index 7ab5171..d8959be 100644 (file)
@@ -23,13 +23,13 @@ do_compile() {
 do_install() {
        cd ${S}
        install -d ${D}/usr/include
-       cp -dpR boost ${D}/usr/include
+       cp -PpR boost ${D}/usr/include
 }
 
 do_stage() {
        cd ${S}
        install -d -m 775 ${STAGING_INCDIR}
-       cp -dpR boost ${STAGING_INCDIR}
+       cp -PpR boost ${STAGING_INCDIR}
 }
 
 FILES_${PN}-dev = "/usr/include"
index c3ab626..08e8556 100644 (file)
@@ -33,7 +33,7 @@ do_install () {
        install -d ${D}/busybox
        ls ${D} -R
 
-       cp -dPr ${D}${base_bindir} ${D}${base_sbindir} ${D}${prefix} ${D}/busybox/
+       cp -PpR ${D}${base_bindir} ${D}${base_sbindir} ${D}${prefix} ${D}/busybox/
        # Move the busybox binary back to /bin
        install -d ${D}${base_bindir}
        mv ${D}/busybox${base_bindir}/busybox ${D}${base_bindir}/
index ad2fd8d..81b620f 100644 (file)
@@ -48,7 +48,7 @@ do_install () {
        install -d ${D}/busybox
        ls ${D} -R
 
-       cp -dPr ${D}${base_bindir} ${D}${base_sbindir} ${D}${prefix} ${D}/busybox/
+       cp -PpR ${D}${base_bindir} ${D}${base_sbindir} ${D}${prefix} ${D}/busybox/
        # Move the busybox binary back to /bin
        install -d ${D}${base_bindir}
        mv ${D}/busybox${base_bindir}/busybox ${D}${base_bindir}/
index 234606f..0e1736f 100644 (file)
@@ -23,7 +23,7 @@ do_install () {
      
     install -d ${D}${datadir}/sgml/docbook/dsssl-stylesheets-${PV}
     install -m 0644 catalog ${D}${datadir}/sgml/docbook/dsssl-stylesheets-${PV}
-    cp -dpr common ${D}${datadir}/sgml/docbook/dsssl-stylesheets-${PV}
+    cp -PpRr common ${D}${datadir}/sgml/docbook/dsssl-stylesheets-${PV}
 
     install-catalog --add ${sysconfdir}/sgml/dsssl-docbook-stylesheets.cat \
       ${D}${datadir}/sgml/docbook/dsssl-stylesheets-${PV}/catalog
index d233094..47e58cf 100644 (file)
@@ -23,7 +23,7 @@ do_install () {
     # for details.
     install -d -m 755 ${D}${datadir}/sgml/docbook/sgml-dtd-${DTD_VERSION}
     install docbook.cat ${D}${datadir}/sgml/docbook/sgml-dtd-${DTD_VERSION}/catalog
-    cp -dpr *.dtd *.mod *.dcl ${D}${datadir}/sgml/docbook/sgml-dtd-${DTD_VERSION}
+    cp -PpRr *.dtd *.mod *.dcl ${D}${datadir}/sgml/docbook/sgml-dtd-${DTD_VERSION}
 
     install-catalog --add ${sysconfdir}/sgml/sgml-docbook-dtd-${DTD_VERSION}.cat \
       ${D}${datadir}/sgml/docbook/sgml-dtd-${DTD_VERSION}/catalog
index a92e87e..1adce62 100644 (file)
@@ -38,7 +38,7 @@ do_unpackpost() {
 
   # Make a copy of the remaining source to get the embedded
   # resources.
-  cp -r source/org build/
+  cp -R source/org build/
 
   # Remove source code and other stuff.
   find build -name '*.java' -exec rm -f {} \;
index 0966a5e..a8a921f 100644 (file)
@@ -8,7 +8,7 @@ S = "${WORKDIR}/eyeOS"
 
 do_install() {
        install -d ${D}/www/pages/eyeos
-       cp -r ${S}/* ${D}/www/pages/eyeos
+       cp -R ${S}/* ${D}/www/pages/eyeos
 }
 
 PACKAGE_ARCH = "all"
index 9bee0c0..1f5b780 100644 (file)
@@ -18,7 +18,7 @@ inherit pkgconfig
 
 do_install () {
         cd fbreader/openzaurus; oe_runmake .builddir RESOLUTION=240x320
-       cp -r data/* ${D}
+       cp -R data/* ${D}
 }
 
 SRC_URI[md5sum] = "17062ae0f1d7d093e61cd002e39885ae"
index 50e27c5..cc285c1 100644 (file)
@@ -58,7 +58,7 @@ do_configure() {
 
 do_install () {
         cd fbreader/${READER_ARCH}; oe_runmake .builddir RESOLUTION=${READER_RESOLUTION}
-       cp -r data/* ${D}
+       cp -R data/* ${D}
 }
 
 SRC_URI[md5sum] = "3b4944bf0d37b42249bef84d59918ce0"
index 95377a4..e5cfb52 100644 (file)
@@ -14,7 +14,7 @@ SRC_URI = "http://gecko-mediaplayer.googlecode.com/files/${P}.tar.gz \
 "
 
 do_install_append() {
-       cp -dpR ${WORKDIR}/extens* ${D}${libdir}/mozilla/
+       cp -PpR ${WORKDIR}/extens* ${D}${libdir}/mozilla/
 }
 
 PACKAGES =+ "${PN}-firefox-hack"
index fe50daa..a9b3dcc 100644 (file)
@@ -21,7 +21,7 @@ EXTRA_OECONF = " --enable-new-libxul=yes "
 TARGET_CC_ARCH += " -DHAVE_NEW_XULRUNNER=1 "
 
 do_install_append() {
-       cp -dpR ${WORKDIR}/extens* ${D}${libdir}/mozilla/
+       cp -PpR ${WORKDIR}/extens* ${D}${libdir}/mozilla/
 }
 
 PACKAGES =+ "${PN}-firefox-hack"
index 69c4ff2..f1ce472 100644 (file)
@@ -13,9 +13,9 @@ ALTERNATIVE_PRIORITY ?= 1
 
 # copy icons from other alternatives if they are not provided by current alternative
 # ie gpe-sketchbook install own icon to pixmaps dir even before gpe-icons_*.bb is installed
-# so if we switch pixmaps link to neo theme, there would be no icon for gpe-sketchbook 
+# so if we switch pixmaps link to neo theme, there would be no icon for gpe-sketchbook
 # unless we copy it to neo theme in postinst too
-# inherit update-alternatives is not used, because not all distributions want to use it 
+# inherit update-alternatives is not used, because not all distributions want to use it
 # and conditional inherit is a bit difficult to use (inherit ${GPE_INHERIT} works, but only if we always want at least 1 bbclass)
 
 pkg_postinst_shr() {
@@ -33,12 +33,12 @@ pkg_postinst_shr() {
                 if [ "${pixmap_dir}"x == "pixmaps.${PN}"x ] ; then
                           continue;
                 fi
-                for pixmap in `find ${pixmap_dir}`; do 
-                          pixmap_target=`echo ${pixmap} | sed "s/${pixmap_dir}/pixmaps.${PN}/g"`; 
-                          if [ ! -e ${pixmap_target} ] ; then 
-                                      cp -ra ${pixmap} ${pixmap_target}; 
-                                      echo "${pixmap} merged"; 
-                          fi; 
+                for pixmap in `find ${pixmap_dir}`; do
+                          pixmap_target=`echo ${pixmap} | sed "s/${pixmap_dir}/pixmaps.${PN}/g"`;
+                          if [ ! -e ${pixmap_target} ] ; then
+                                      cp -Ra ${pixmap} ${pixmap_target};
+                                      echo "${pixmap} merged";
+                          fi;
                 done
         done
         update-alternatives --install ${ALTERNATIVE_LINK} ${ALTERNATIVE_NAME} ${ALTERNATIVE_PATH} ${ALTERNATIVE_PRIORITY}
index 2e15976..8242a85 100644 (file)
@@ -20,7 +20,7 @@ ALTERNATIVE_PRIORITY = 10
 do_install() {
         install -d ${D}${datadir}/gpe/
         install -d ${D}${datadir}/gpe/pixmaps.${PN}/
-        cp -r ${S}/* "${D}${datadir}/gpe/pixmaps.${PN}/"
+        cp -R ${S}/* "${D}${datadir}/gpe/pixmaps.${PN}/"
 }
 
 FILES_${PN} = "${datadir}/gpe/pixmaps.${PN}/"
index 732ada0..602607c 100644 (file)
@@ -20,7 +20,7 @@ EXTRA_OECONF = " --enable-gles2-example "
 
 # bitbake git fetcher doesn't handle git submodules currently
 do_configure_prepend () {
-       cp -rf ${WORKDIR}/gstreamer-0.10.25/common/* ${S}/common/
+       cp -Rf ${WORKDIR}/gstreamer-0.10.25/common/* ${S}/common/
        autopoint
 }
 
index 3ba9fdd..91ed8fa 100644 (file)
@@ -28,8 +28,8 @@ inherit autotools pkgconfig
 EXTRA_OECONF = "   --disable-rpath --disable-tests --disable-examples"
 
 do_configure_prepend () {
-       cp -rf ${WORKDIR}/gstreamer-0.10.29/common/* ${S}/common/
-       cp -rf ${WORKDIR}/gstreamer-0.10.29/po/* ${S}/po/
+       cp -Rf ${WORKDIR}/gstreamer-0.10.29/common/* ${S}/common/
+       cp -Rf ${WORKDIR}/gstreamer-0.10.29/po/* ${S}/po/
        autopoint --force
        sed -i -e '/po /d' ${S}/Makefile.am
 }
index bf6424e..16fbddf 100644 (file)
@@ -13,7 +13,7 @@ S = "${WORKDIR}/eGTK"
 do_install() {
        rm -rf ${S}/patches
        install -d ${D}${datadir}/themes/elementary
-       cp -r ${S}/* ${D}${datadir}/themes/elementary/
+       cp -R ${S}/* ${D}${datadir}/themes/elementary/
 }
 
 PACKAGE_ARCH = "all"
index 5fdb345..7e3c02f 100644 (file)
@@ -24,8 +24,8 @@ do_install() {
        install -d ${D}${datadir}/icons/elementary/
        install -d ${D}${datadir}/icons/elementary-monochrome/
 
-       cp -r ${S}/elementary/* ${D}${datadir}/icons/elementary/
-       cp -r ${S}/elementary-monochrome/* ${D}${datadir}/icons/elementary-monochrome/
+       cp -R ${S}/elementary/* ${D}${datadir}/icons/elementary/
+       cp -R ${S}/elementary-monochrome/* ${D}${datadir}/icons/elementary-monochrome/
 }
 
 FILES_${PN} = "${datadir}/icons/elementary*"
index e0f4849..75a5477 100644 (file)
@@ -39,7 +39,7 @@ do_install () {
         for i in whitelist blacklist; do
           install -m 644 etc/havp/$i ${D}${sysconfdir}/havp/$i
         done
-        cp -r etc/havp/templates ${D}${sysconfdir}/havp
+        cp -R etc/havp/templates ${D}${sysconfdir}/havp
         chmod -R a+rX ${D}${sysconfdir}/havp/templates
 
         # We need some /var directories
index 20155ed..5be2dc6 100644 (file)
@@ -185,7 +185,7 @@ do_install() {
 
        for F in bootstrap/icedtea/{bin,include,jre,lib}
        do
-               cp -rL $F ${JDK_INSTALL_DIR}
+               cp -RL $F ${JDK_INSTALL_DIR}
        done
 
        install -d ${JDK_INSTALL_DIR}/include/hpi
index 5876a5f..dd1b5ad 100644 (file)
@@ -24,7 +24,7 @@ do_compile() {
   # Built everything but the JMS and JMX classes (like in Debian)
        javac -sourcepath src/main/java -cp $cp -d build `find src/main/java -name "*.java" -and -not \( -iwholename "*jms*" -or -iwholename "*jmx*" \)`
 
-  cp -r src/main/resources/* build/
+  cp -R src/main/resources/* build/
 
   fastjar -C build -c -f ${JARFILENAME} .
 }
index ce174bf..13b2353 100644 (file)
@@ -31,8 +31,8 @@ do_install() {
 do_stage() {
        cd ${S}
        install -d -m 775 ${STAGING_LIBDIR}
-       cp -dp src/RCF/libRCF[sm]t.a ${STAGING_LIBDIR}
-       cp -dp src/RCF/libRCF[sm]t.so* ${STAGING_LIBDIR}
+       cp -PpR src/RCF/libRCF[sm]t.a ${STAGING_LIBDIR}
+       cp -PpR src/RCF/libRCF[sm]t.so* ${STAGING_LIBDIR}
        install -d -m 775 ${STAGING_INCDIR}
        tar -C include --exclude='*.diff' -cvf - . | tar -C ${STAGING_INCDIR} -xvf -
 }
index fb83cf2..ccd8d32 100644 (file)
@@ -37,7 +37,7 @@ do_stage () {
        install -c -m 0644 ${S}/libltdl/m4/argz.m4 ${STAGING_DATADIR}/aclocal/
 
        install -d ${STAGING_DATADIR}/libtool/libltdl
-       cp -pfPr  ${S}/libltdl/* ${STAGING_DATADIR}/libtool/libltdl/
+       cp -pfPR  ${S}/libltdl/* ${STAGING_DATADIR}/libtool/libltdl/
 }
 
 do_install () {
index d5c7139..bf00459 100644 (file)
@@ -39,6 +39,6 @@ do_install () {
        install -c -m 0644 ${S}/libltdl/m4/argz.m4 ${D}${datadir}/aclocal/
 
        install -d ${D}${datadir}/libtool/libltdl
-       cp -pfPr  ${S}/libltdl/* ${D}${datadir}/libtool/libltdl/
+       cp -pfPR  ${S}/libltdl/* ${D}${datadir}/libtool/libltdl/
 }
 
index 2f40840..7bff379 100644 (file)
@@ -13,7 +13,7 @@ do_compile() {
 
 do_install() {
        install -d  ${D}/lib/firmware/
-       cp -rpP * ${D}/lib/firmware/
+       cp -RpP * ${D}/lib/firmware/
 }
 
 FILES_${PN} += "/lib/firmware/*"
index 15879be..0453d7d 100644 (file)
@@ -12,7 +12,7 @@ do_compile() {
 
 do_install() {
        install -d  ${D}/lib/firmware/zd1211
-       cp -rpP zd1211-firmware/* ${D}/lib/firmware/zd1211
+       cp -RpP zd1211-firmware/* ${D}/lib/firmware/zd1211
 }
 
 FILES_${PN} += "/lib/firmware/zd1211/*"
index ad39cab..03ff61d 100644 (file)
@@ -86,9 +86,9 @@ llvm_stage() {
        install -d ${STAGING_LIBDIR}/llvm${LLVM_RELEASE}
 
        #       Move headers into their own directory
-       cp -r ${WORKDIR}/llvm-install/${prefix}/include/llvm \
+       cp -R ${WORKDIR}/llvm-install/${prefix}/include/llvm \
        ${STAGING_INCDIR}/llvm${LLVM_RELEASE}/
-       cp -r ${WORKDIR}/llvm-install/${prefix}/include/llvm-c \
+       cp -R ${WORKDIR}/llvm-install/${prefix}/include/llvm-c \
        ${STAGING_INCDIR}/llvm${LLVM_RELEASE}/
 
        find ${WORKDIR}/llvm-install/${prefix}/lib -name "*" -maxdepth 1 -exec \
index 3bc5cd4..874a5db 100644 (file)
@@ -15,5 +15,5 @@ do_install() {
 
 do_stage() {
        mkdir -p ${STAGING_INCDIR}
-       cp -r ${S}/include/* ${STAGING_INCDIR}/
+       cp -R ${S}/include/* ${STAGING_INCDIR}/
 }
index bbd97f9..fcfb999 100644 (file)
@@ -15,5 +15,5 @@ do_install() {
 
 do_stage() {
        mkdir -p ${STAGING_INCDIR}
-       cp -r ${S}/include/* ${STAGING_INCDIR}/
+       cp -R ${S}/include/* ${STAGING_INCDIR}/
 }
index d828d02..08daace 100644 (file)
@@ -51,8 +51,8 @@ do_install_mythweb_apache () {
         install -d  ${D}${datadir}/apache2/htdocs
         install -d  ${D}/etc/apache2
         install -d  ${D}/etc/apache2/extra
-        cp -r ${S}/mythweb/* ${D}${datadir}/apache2/htdocs/
-        cp -r ${S}/mythweb/mythweb.conf.apache ${D}/etc/apache2/extra/mythweb.conf
+        cp -R ${S}/mythweb/* ${D}${datadir}/apache2/htdocs/
+        cp -R ${S}/mythweb/mythweb.conf.apache ${D}/etc/apache2/extra/mythweb.conf
         sed -i -e s:/var/www/html:/usr/share/apache2/htdocs:g ${D}/etc/apache2/extra/mythweb.conf
 }
 
@@ -60,8 +60,8 @@ do_install_mythweb_lighttpd () {
         oe_runmake install INSTALL_ROOT="${D}"
         install -d  ${D}/www
         install -d  ${D}/www/pages
-        cp -r ${S}/mythweb/* ${D}www/pages/
-        cp -r ${S}/mythweb/mythweb.conf.lighttpd ${D}/etc/mythweb.conf
+        cp -R ${S}/mythweb/* ${D}www/pages/
+        cp -R ${S}/mythweb/mythweb.conf.lighttpd ${D}/etc/mythweb.conf
         sed -i -e s:/var/www/html:/www/pages:g ${D}/etc/mythweb.conf
 }
 
index 0ce6784..0d2eb5f 100644 (file)
@@ -68,12 +68,12 @@ do_install () {
         install -d  ${D}${sysconfdir}/
         install -d  ${D}${sysconfdir}/apache2
         install -d  ${D}${sysconfdir}/apache2/extra
-        cp -r ${S}/mythweb/* ${D}/${datadir}/apache2/htdocs/
+        cp -R ${S}/mythweb/* ${D}/${datadir}/apache2/htdocs/
         mv ${S}/mythweb/mythweb.conf.apache ${D}${sysconfdir}/apache2/extra/mythweb.conf
         sed -i -e s:/var/www/html:/usr/share/apache2/htdocs:g ${D}${sysconfdir}/apache2/extra/mythweb.conf
         install -d  ${D}/www
         install -d  ${D}/www/pages
-        cp -r ${S}/mythweb/* ${D}/www/pages/
+        cp -R ${S}/mythweb/* ${D}/www/pages/
         mv ${S}/mythweb/mythweb.conf.lighttpd ${D}${sysconfdir}/mythweb.conf
         sed -i -e s:/var/www/html:/www/pages:g ${D}${sysconfdir}/mythweb.conf
 }
index 5cb7393..37673ee 100644 (file)
@@ -32,7 +32,7 @@ do_install_append() {
        cp ${S}/Samples/Common/bin/Release/*cfg ${D}${datadir}/ogre3d/samples/Common/bin
 
        install -d ${D}${datadir}/ogre3d/Media 
-       cp -r ${S}/Samples/Media/* ${D}${datadir}/ogre3d/Media/
+       cp -R ${S}/Samples/Media/* ${D}${datadir}/ogre3d/Media/
        find ${D} -name ".svn" | xargs rm -rf
 }
 
index 2a74d4e..6e6754d 100644 (file)
@@ -14,6 +14,6 @@ S = "${WORKDIR}/usr"
 
 do_install() {
   install -d ${D}/usr
-  cp -ra ${S}/bin ${D}/usr
-  cp -ra ${S}/share ${D}/usr
+  cp -Ra ${S}/bin ${D}/usr
+  cp -Ra ${S}/share ${D}/usr
 }
index f129fdb..69813c6 100644 (file)
@@ -11,8 +11,8 @@ pkg_postinst_${PN}_append () {
                 fi
                 echo "Old alternatives directory ${alternatives_dir_old} exists, moving entries to new one ${alternatives_dir_new}"
                 echo "Creating backup copy of both ${alternatives_dir_old}-backup and ${alternatives_dir_new}-backup"
-                cp -ra "${alternatives_dir_old}" "${alternatives_dir_old}-backup"
-                cp -ra "${alternatives_dir_new}" "${alternatives_dir_new}-backup"
+                cp -Ra "${alternatives_dir_old}" "${alternatives_dir_old}-backup"
+                cp -Ra "${alternatives_dir_new}" "${alternatives_dir_new}-backup"
 
                 cd ${alternatives_dir_old}
                 for alt_file in * ; do
index 0573788..172612c 100644 (file)
@@ -21,7 +21,7 @@ EXTRA_OECONF = " --with-kpath=${STAGING_KERNEL_DIR} --enable-module-only --with-
 # bitbake git fetcher doesn't handle git submodules currently
 do_configure_prepend () {
        sed -i s:cp:echo:g ${S}/module/Makefile.in
-       cp -rf ${WORKDIR}/gstreamer-0.10.25/common/* ${S}/common/
+       cp -Rf ${WORKDIR}/gstreamer-0.10.25/common/* ${S}/common/
        autopoint
        mkdir -p ${S}/win32
        touch ${S}/win32/MANIFEST
index adc17e7..61327cc 100644 (file)
@@ -27,7 +27,7 @@ do_configure_prepend() {
 
 do_install_append() {
        install -d ${D}${datadir}/pygobject/
-       cp -dpfR docs/* ${D}${datadir}/pygobject/
+       cp -PpRfR docs/* ${D}${datadir}/pygobject/
        install -d ${D}${datadir}/gtk-doc/html/pygobject/
        cp docs/style.css ${D}${datadir}/gtk-doc/html/pygobject/
 }
index 16cfb96..7d048ed 100644 (file)
@@ -20,7 +20,7 @@ do_install() {
        install -d ${D}${bindir}
        install -m 755 ${PN} ${D}${bindir}
        install -d ${D}${datadir}/${PN}
-       cp -r graphics levels music scores sounds ${D}${datadir}/${PN}/
+       cp -R graphics levels music scores sounds ${D}${datadir}/${PN}/
 }
 
 
index 644365a..5216d7b 100644 (file)
@@ -29,15 +29,15 @@ do_install() {
 
        gzip -c9 ${WORKDIR}/${P}/rox.1 >${D}${mandir}/man1/rox.1.gz
 
-       cp -r ${WORKDIR}/${P}/Choices ${D}${datadir}/rox
+       cp -R ${WORKDIR}/${P}/Choices ${D}${datadir}/rox
        rm -rf ${D}${datadir}rox/Choices/MIME-info/
        cp ${WORKDIR}/${P}/ROX-Filer/*.xml ${D}${datadir}/rox
 
        cp ${WORKDIR}/${P}/ROX-Filer/Help/{Changes,README*,TODO} ${D}${datadir}/doc/rox
        cp ${WORKDIR}/${P}/ROX-Filer/Help/*html ${D}${datadir}/doc/rox/html
        cp ${WORKDIR}/${P}/ROX-Filer/style.css ${D}${datadir}/doc/rox/html
-       cp -r ${WORKDIR}/${P}/ROX-Filer/images ${D}${datadir}/rox
-       cp -r ${WORKDIR}/${P}/ROX-Filer/ROX ${D}${datadir}/rox
+       cp -R ${WORKDIR}/${P}/ROX-Filer/images ${D}${datadir}/rox
+       cp -R ${WORKDIR}/${P}/ROX-Filer/ROX ${D}${datadir}/rox
 
 #      cp ROX-Filer/ROX-Filer ${D}/usr/bin/rox
        cp ${WORKDIR}/${P}/ROX-Filer/.DirIcon ${D}${datadir}/rox/.DirIcon
index ac1a22b..78f3b36 100644 (file)
@@ -14,7 +14,7 @@ FILES_${PN} += "${RUBY_DIR}"
 
 do_install() {
        install -d ${D}${RUBY_DIR}
-       cp -r lib/* ${D}${RUBY_DIR}
+       cp -R lib/* ${D}${RUBY_DIR}
 }
 
 
index ccc8798..bc985c0 100644 (file)
@@ -8,7 +8,7 @@ SRC_URI += "file://gtk-theme/gtkrc.${PN}"
 
 do_install() {
        install -d "${D}${datadir}/themes/${PN}/gtk-2.0"
-       cp -r "${S}/./" "${D}${datadir}/themes/${PN}/gtk-2.0"
+       cp -R "${S}/./" "${D}${datadir}/themes/${PN}/gtk-2.0"
         install -d ${D}${sysconfdir}/gtk-2.0/
         install -m 0644 ${WORKDIR}/gtk-theme/gtkrc.${PN} ${D}${sysconfdir}/gtk-2.0/gtkrc.${PN}
 }
index 2d529ba..baa7697 100644 (file)
@@ -17,7 +17,7 @@ S = "${WORKDIR}/git/icons/icon-theme-neo"
 do_install() {
         install -d ${D}${datadir}/icons/
         install -d ${D}${datadir}/icons/nEo/
-        cp -r ${S}/* "${D}${datadir}/icons/nEo/"
+        cp -R ${S}/* "${D}${datadir}/icons/nEo/"
 }
 
 FILES_${PN} = "${datadir}/icons/nEo/"
index f545571..fb388f4 100644 (file)
@@ -9,10 +9,10 @@ do_install() {
     cp skype ${D}/usr/bin/
 
     install -d ${D}/usr/share/skype
-    cp -r sounds lang avatars ${D}/usr/share/skype
+    cp -R sounds lang avatars ${D}/usr/share/skype
 
     install -d ${D}/usr/share/pixmaps
-    cp -r icons/SkypeBlue_48x48.png ${D}/usr/share/pixmaps/skype.png
+    cp -R icons/SkypeBlue_48x48.png ${D}/usr/share/pixmaps/skype.png
 }
 
 FILES_${PN} += "${datadir}/skype"
index 536d1af..0c01a18 100755 (executable)
@@ -91,7 +91,7 @@ if __name__ == "__main__":
         if options.copydir:
             copypath = os.path.join(options.copydir, path.replace(options.parentdir, '', 1))
             mkdirhier(os.path.split(copypath)[0])
-            os.system("cp -dp " + path + " " + copypath)
+            os.system("cp -Pp " + path + " " + copypath)
 
     def copydir(path, fstamp):
         if options.copydir:
index 07005e3..53c172e 100755 (executable)
@@ -109,7 +109,13 @@ Valid destinations are directories or one of the dest names from $IPKG_CONF:" >&
        IPKG_DIR_PREFIX=usr/lib/ipkg
        IPKG_LISTS_DIR=$IPKG_OFFLINE_ROOT/$IPKG_DIR_PREFIX/lists
        IPKG_PENDING_DIR=$IPKG_OFFLINE_ROOT/$IPKG_DIR_PREFIX/pending
-       IPKG_TMP=`mktemp -d`
+
+       # test for bsd mktemp and pass -t <prefix> when needed
+       if (mktemp -V) ; then
+               IPKG_TMP=`mktemp -d`
+       else
+               IPKG_TMP=`mktemp -d -t ipkg`
+       fi
 
        if [ ! -d "$IPKG_TMP" ]; then
                echo "Error, could not create a temp directory"
index 9eeac4b..b54c38d 100644 (file)
@@ -1,5 +1,5 @@
 DESCRIPTION = "Helper script for packaged-staging.bbclass"
-PR = "r13"
+PR = "r14"
 
 SRC_URI = "file://stage-manager \
            file://stage-manager-ipkg \
index bc1eabf..c3cd7ee 100644 (file)
@@ -245,7 +245,7 @@ install:
        $(MAKE) -C $(DEMO_INSTALL_DIR)/$(PLATFORM) install
 
        @echo Copying examples..
-       @cp -rp examples/$(PLATFORM)/web $(EXEC_DIR)/
+       @cp -Rp examples/$(PLATFORM)/web $(EXEC_DIR)/
        @cp -p examples/$(PLATFORM)/dvevmdemo $(EXEC_DIR)/
 
        @echo Installing clips..
index d9ae67f..880bc72 100644 (file)
@@ -86,14 +86,14 @@ do_install_prepend () {
     install -d ${D}/${installdir}/gst/${PLATFORM}
 
     # copy gstreamer demo scripts
-    cp -r ${WORKDIR}/gstreamer_ti/gstreamer_demo/shared ${D}/${installdir}/gst
+    cp -R ${WORKDIR}/gstreamer_ti/gstreamer_demo/shared ${D}/${installdir}/gst
 
     # If we have loadmodules.sh in WORKDIR then give preference to this over
     # the default gst-ti loadmdules.sh
     if [ -f ${WORKDIR}/loadmodules.sh ]; then
        cp ${WORKDIR}/loadmodules.sh ${D}/${installdir}/gst/${PLATFORM}
     else
-       cp -r ${WORKDIR}/gstreamer_ti/gstreamer_demo/${PLATFORM} ${D}/${installdir}/gst
+       cp -R ${WORKDIR}/gstreamer_ti/gstreamer_demo/${PLATFORM} ${D}/${installdir}/gst
     fi   
 
     # delete .svn files
index a3942cc..5e37113 100644 (file)
@@ -60,11 +60,11 @@ do_install() {
     cp -pPrf ${S}/* ${D}${AUDIO_SOC_INSTALL_DIR_RECIPE}
 
     install -d ${D}/${installdir}/ti-audio-soc-example
-    cp -rf ${S}/gpp/${BOARD} ${D}/${installdir}/ti-audio-soc-example
-    cp -rf ${S}/data/* ${D}/${installdir}/ti-audio-soc-example
+    cp -Rf ${S}/gpp/${BOARD} ${D}/${installdir}/ti-audio-soc-example
+    cp -Rf ${S}/data/* ${D}/${installdir}/ti-audio-soc-example
 
-    cp -rf ${S}/dsp/${BOARD}/Debug/audioSoc_dsp.out  ${D}/${installdir}/ti-audio-soc-example/${BOARD}/Debug
-    cp -rf ${S}/dsp/${BOARD}/Debug/audioSoc_dsp.out  ${D}/${installdir}/ti-audio-soc-example/${BOARD}/Release
+    cp -Rf ${S}/dsp/${BOARD}/Debug/audioSoc_dsp.out  ${D}/${installdir}/ti-audio-soc-example/${BOARD}/Debug
+    cp -Rf ${S}/dsp/${BOARD}/Debug/audioSoc_dsp.out  ${D}/${installdir}/ti-audio-soc-example/${BOARD}/Release
 
 }
 
index 6661d9a..e77aa5d 100644 (file)
@@ -11,7 +11,7 @@ SRC_URI = "http://www.gnome.org/~jamiemcc/tracker/tracker-${PV}.tar.gz \
 inherit autotools pkgconfig
 
 do_install_append() {
-       cp -dPr ${D}${STAGING_DATADIR}/* ${D}${datadir}/ || true 
+       cp -PpR ${D}${STAGING_DATADIR}/* ${D}${datadir}/ || true
        install -d ${D}/${sysconfdir}/X11/Xsession.d/
        install -m 0755 ${WORKDIR}/90tracker  ${D}/${sysconfdir}/X11/Xsession.d/
 }
index 906c60d..00381ed 100644 (file)
@@ -22,7 +22,7 @@ EXTRA_OECONF += " tracker_cv_have_ioprio=yes"
 LEAD_SONAME = "libtrackerclient.so.0"
 
 do_install_append() {
-   cp -dPr ${D}${STAGING_DATADIR}/* ${D}${datadir}/ || true 
+   cp -PpR ${D}${STAGING_DATADIR}/* ${D}${datadir}/ || true
    install -d ${D}/${sysconfdir}/X11/Xsession.d/
    install -m 0755 ${WORKDIR}/90tracker  ${D}/${sysconfdir}/X11/Xsession.d/
 }
index f5c8d8a..22831ea 100644 (file)
@@ -25,10 +25,10 @@ do_install() {
        install -m 0755 ${S}/webifmetabin ${D}${bindir}/
 
        install -d ${D}${sysconfdir}    
-       cp -dPr ${S}/package/webif/files/etc/* ${D}${sysconfdir}/
+       cp -PpR ${S}/package/webif/files/etc/* ${D}${sysconfdir}/
 
        install -d ${D}${libdir}
-       cp -dPr ${S}/package/webif/files/usr/lib/* ${D}${libdir}/
+       cp -PpR ${S}/package/webif/files/usr/lib/* ${D}${libdir}/
 
        find ${D} -name ".svn" | xargs rm -r || true
 }
index 5d41a2e..defb71f 100644 (file)
@@ -37,8 +37,8 @@ do_install() {
        done
 
        oe_runmake -e INSTALL_ROOT=${D} install
-       cp -r ${D}/${D}/* ${D}/ || true
-       cp -r ${D}/usr/local/* ${D}${prefix} || true
+       cp -R ${D}/${D}/* ${D}/ || true
+       cp -R ${D}/usr/local/* ${D}${prefix} || true
        rm -rf ${D}/usr/local ${D}/${D}
 
        if [ "$QT_LIBINFIX" = "E" ] ; then
index 3447c6f..bce50a6 100644 (file)
@@ -10,7 +10,7 @@ SRC_URI[sha256sum] = "a0096ac6859cfb61cf06dd9bc0a79a3333a4ec389ba311911d84df8ff2
 do_install() {
        oe_runmake install
        install -d ${D}${prefix}
-       cp -r ${S}/vpx-vp8-nopost-nodocs*${PV}/* ${D}${prefix}/
+       cp -R ${S}/vpx-vp8-nopost-nodocs*${PV}/* ${D}${prefix}/
        install -d ${D}${includedir}/vpx
        mv ${D}${includedir}/*.h ${D}${includedir}/vpx
 }
index 46ed187..27cf54e 100644 (file)
@@ -19,7 +19,7 @@ do_compile() {
                `find src/java/org -name "*.java"` \
                `find src/java/com -name "*.java"`
 
-  cp -r src/resources/* build/META-INF/services
+  cp -R src/resources/* build/META-INF/services
 
   fastjar -C build -c -f ${JARFILENAME} .
 }