From patchwork Mon Dec 23 19:43:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aaro Koskinen X-Patchwork-Id: 304838 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 281AC2C00A5 for ; Tue, 24 Dec 2013 06:44:01 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757812Ab3LWTny (ORCPT ); Mon, 23 Dec 2013 14:43:54 -0500 Received: from filtteri1.pp.htv.fi ([213.243.153.184]:48391 "EHLO filtteri1.pp.htv.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757638Ab3LWTnx (ORCPT ); Mon, 23 Dec 2013 14:43:53 -0500 Received: from localhost (localhost [127.0.0.1]) by filtteri1.pp.htv.fi (Postfix) with ESMTP id CC7FF21B82B; Mon, 23 Dec 2013 21:43:51 +0200 (EET) X-Virus-Scanned: Debian amavisd-new at pp.htv.fi Received: from smtp5.welho.com ([213.243.153.39]) by localhost (filtteri1.pp.htv.fi [213.243.153.184]) (amavisd-new, port 10024) with ESMTP id OI02pY1GIYbo; Mon, 23 Dec 2013 21:43:47 +0200 (EET) Received: from blackmetal.bb.dnainternet.fi (91-145-91-118.bb.dnainternet.fi [91.145.91.118]) by smtp5.welho.com (Postfix) with ESMTP id 43AB65BC002; Mon, 23 Dec 2013 21:43:47 +0200 (EET) From: Aaro Koskinen To: sparclinux@vger.kernel.org Cc: Aaro Koskinen Subject: [PATCH v2 04/11] tilo: replace sed with dirname in tilo.sh Date: Mon, 23 Dec 2013 21:43:26 +0200 Message-Id: <1387827813-8279-5-git-send-email-aaro.koskinen@iki.fi> X-Mailer: git-send-email 1.8.5.1 In-Reply-To: <1387827813-8279-1-git-send-email-aaro.koskinen@iki.fi> References: <1387827813-8279-1-git-send-email-aaro.koskinen@iki.fi> Sender: sparclinux-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: sparclinux@vger.kernel.org Use dirname to figure out the path of maketilo. Signed-off-by: Aaro Koskinen --- tilo/tilo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tilo/tilo.sh b/tilo/tilo.sh index f152e288d967..175dacf71f22 100755 --- a/tilo/tilo.sh +++ b/tilo/tilo.sh @@ -112,7 +112,7 @@ if [ -z "$sun4u" -a -z "$sun4c" ]; then exit 1 fi -`echo $0 | sed 's/tilo$/maketilo/'` $tilo_args out=$output +$(dirname $0)/maketilo $tilo_args out=$output rm -f $to_remove