Return-Path: Received: from devils.ext.ti.com (devils.ext.ti.com [198.47.26.153]) by arago-project.org (Postfix) with ESMTPS id 8836452A16 for ; Tue, 26 Nov 2013 22:46:59 +0000 (UTC) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id rAQMkwbT010812 for ; Tue, 26 Nov 2013 16:46:58 -0600 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id rAQMkw9N016915 for ; Tue, 26 Nov 2013 16:46:58 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.2.342.3; Tue, 26 Nov 2013 16:46:57 -0600 Received: from a0850405-off1 (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id rAQMkvf8016963; Tue, 26 Nov 2013 16:46:57 -0600 Received: from a0850405 by a0850405-off1 with local (Exim 4.76) (envelope-from ) id 1VlRPF-0000rw-Dw; Tue, 26 Nov 2013 17:46:57 -0500 From: Carlos Hernandez To: Date: Tue, 26 Nov 2013 17:46:52 -0500 Message-ID: <1385506012-3309-1-git-send-email-ceh@ti.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Subject: [PATCH] linaro-pm-qa-utils: Remove hardcoded relative paths X-BeenThere: meta-arago@arago-project.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Arago metadata layer for TI SDKs - OE-Core/Yocto compatible List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Nov 2013 22:47:00 -0000 Content-Type: text/plain Some scripts contained hardcoded relative paths to not existing files. This patch removes the relative paths and instead let BASH resolve the path to the executable. Signed-off-by: Carlos Hernandez --- .../linaro-pm-qa/linaro-pm-qa-utils_git.bb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meta-arago-extras/recipes-devtools/linaro-pm-qa/linaro-pm-qa-utils_git.bb b/meta-arago-extras/recipes-devtools/linaro-pm-qa/linaro-pm-qa-utils_git.bb index dcf599f..0ba1682 100644 --- a/meta-arago-extras/recipes-devtools/linaro-pm-qa/linaro-pm-qa-utils_git.bb +++ b/meta-arago-extras/recipes-devtools/linaro-pm-qa/linaro-pm-qa-utils_git.bb @@ -41,6 +41,9 @@ do_install () { # Install the helper scripts in the include directory for script in `find . -name "*.sh" | grep include` do + # Remove hardcoded relative paths + sed -i -e 's#..\/utils\/##' ${script} + script_basename=`basename ${script}` install -m 0755 $script ${D}${bindir}/linaro-pm-qa-include/${script_basename} done @@ -53,6 +56,8 @@ do_install () { # directory then change the include path to the absolute path # and to reflect the install location of the helper scripts. sed -i -e "s#source ../include#source ${bindir}/linaro-pm-qa-include#g" ${script} + # Remove hardcoded relative paths + sed -i -e 's#..\/utils\/##' ${script} script_basename=`basename ${script}` install -m 0755 $script ${D}${bindir}/${script_basename} -- 1.7.9.5