From patchwork Fri Feb 11 14:49:21 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sascha Silbe X-Patchwork-Id: 82889 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bilbo.ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id 749A9B71D8 for ; Sat, 12 Feb 2011 13:05:26 +1100 (EST) Received: from smtp.chost.de (setoy.chost.de [217.160.209.225]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.chost.de", Issuer "CA Cert Signing Authority" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id AF671B7043 for ; Sat, 12 Feb 2011 01:56:11 +1100 (EST) Received: (qmail 18263 invoked by uid 5015); 11 Feb 2011 14:49:30 -0000 Received: (nullmailer pid 32547 invoked by uid 123); Fri, 11 Feb 2011 14:49:23 -0000 Received: from twin.sascha.silbe.org (twin.sascha.silbe.org [192.168.1.2]) by flatty.sascha.silbe.org ([192.168.1.252]) with SMTP via TCP; 11 Feb 2011 14:49:23 -0000 Received: (nullmailer pid 5837 invoked by uid 8193); Fri, 11 Feb 2011 14:49:27 -0000 From: Sascha Silbe To: patchwork@lists.ozlabs.org Subject: [PATCH 2/2] patchwork-update-commits: autodetect patchwork install directory Date: Fri, 11 Feb 2011 15:49:21 +0100 Message-Id: <1297435761-5794-3-git-send-email-sascha-pgp@silbe.org> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1297435761-5794-1-git-send-email-sascha-pgp@silbe.org> References: <1297435761-5794-1-git-send-email-sascha-pgp@silbe.org> X-Mailman-Approved-At: Sat, 12 Feb 2011 13:05:24 +1100 X-BeenThere: patchwork@lists.ozlabs.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Sascha Silbe List-Id: Patchwork development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Errors-To: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Make patchwork-update-commits work from outside the Patchwork git repository so it can be used for other projects. Signed-off-by: Sascha Silbe --- tools/patchwork-update-commits | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/tools/patchwork-update-commits b/tools/patchwork-update-commits index ce4f301..a31cc2e 100755 --- a/tools/patchwork-update-commits +++ b/tools/patchwork-update-commits @@ -1,6 +1,7 @@ #!/bin/bash -pwpath=apps/patchwork +toolsdir="$(dirname "$0")" +pwpath="${toolsdir}"/../apps/patchwork if [ "$#" -lt 2 ] then