]> code.ossystems Code Review - openembedded-core.git/commitdiff
classes: Remove various bashisms
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 8 Nov 2011 17:57:41 +0000 (17:57 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 10 Nov 2011 11:35:31 +0000 (11:35 +0000)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/image-prelink.bbclass
meta/classes/kernel.bbclass
meta/classes/package_rpm.bbclass

index 350c29d424b73f3ac05c165d5bb5ecd1ec6c88c7..53ef47e4d476c83a904b34781a78320087b9a256 100644 (file)
@@ -24,7 +24,7 @@ prelink_image () {
        ${STAGING_DIR_NATIVE}${sbindir_native}/prelink --root ${IMAGE_ROOTFS} -amR -N -c ${sysconfdir}/prelink.conf
 
        # Remove the prelink.conf if we had to add it.
-       if [ "$dummy_prelink_conf" == "true" ]; then
+       if [ "$dummy_prelink_conf" = "true" ]; then
                rm -f ${IMAGE_ROOTFS}${sysconfdir}/prelink.conf
        fi
 
index 42543e0e4f6d4b26f297b32fe603ab7ecf25790f..dc711f287affd505965c72037ac438b3ac38d81e 100644 (file)
@@ -152,7 +152,7 @@ kernel_do_install() {
        #
        cp -fR * $kerneldir
        cp .config $kerneldir
-       if [ ! "${S}" == "${B}" ]; then
+       if [ "${S}" != "${B}" ]; then
                cp -fR ${S}/* $kerneldir
        fi
        install -m 0644 ${KERNEL_OUTPUT} $kerneldir/${KERNEL_IMAGETYPE}
index 2679e9f4800d3f73de8494b95aa615577fbaab49..f804a0fc177993e02fd34cf0e568237fe0e5f4d5 100644 (file)
@@ -87,22 +87,22 @@ package_generate_rpm_conf_common() {
        shift
 
        printf "_solve_dbpath " > ${rpmconf_base}.macro
-       o_colon=false
+       o_colon="false"
 
        for archvar in "$@"; do
                printf "_solve_dbpath " > ${rpmconf_base}-${archvar}.macro
-               colon=false
+               colon="false"
                for each in `cat ${rpmconf_base}-${archvar}.conf` ; do
-                       if [ "$o_colon" == true ]; then
+                       if [ "$o_colon" = "true" ]; then
                                printf ":" >> ${rpmconf_base}.macro
                        fi
-                       if [ "$colon" == true ]; then
+                       if [ "$colon" = "true" ]; then
                                printf ":" >> ${rpmconf_base}-${archvar}.macro
                        fi
                        printf "%s" $each >> ${rpmconf_base}.macro
-                       o_colon=true
+                       o_colon="true"
                        printf "%s" $each >> ${rpmconf_base}-${archvar}.macro
-                       colon=true
+                       colon="true"
                done
                printf "\n" >> ${rpmconf_base}-${archvar}.macro
        done
@@ -214,7 +214,7 @@ package_install_internal_rpm () {
                                ml_prefix=`echo ${pkg} | cut -d'-' -f1`
                                ml_pkg=$pkg
                                for i in ${MULTILIB_PREFIX_LIST} ; do
-                                       if [ ${ml_prefix} == ${i} ]; then
+                                       if [ ${ml_prefix} = ${i} ]; then
                                                ml_pkg=$(echo ${pkg} | sed "s,^${ml_prefix}-\(.*\),\1,")
                                                archvar=ml_archs
                                                manifest=install_multilib.manifest
@@ -240,7 +240,7 @@ package_install_internal_rpm () {
                        ml_prefix=`echo ${pkg} | cut -d'-' -f1`
                        ml_pkg=$pkg
                        for i in ${MULTILIB_PREFIX_LIST} ; do
-                               if [ ${ml_prefix} == ${i} ]; then
+                               if [ ${ml_prefix} = ${i} ]; then
                                        ml_pkg=$(echo ${pkg} | sed "s,^${ml_prefix}-\(.*\),\1,")
                                        archvar=ml_archs
                                        manifest=install_multilib.manifest
@@ -276,7 +276,7 @@ package_install_internal_rpm () {
                        ml_prefix=`echo ${pkg} | cut -d'-' -f1`
                        ml_pkg=$pkg
                        for i in ${MULTILIB_PREFIX_LIST} ; do
-                               if [ ${ml_prefix} == ${i} ]; then
+                               if [ ${ml_prefix} = ${i} ]; then
                                        ml_pkg=$(echo ${pkg} | sed "s,^${ml_prefix}-\(.*\),\1,")
                                        archvar=ml_archs
                                        break