From patchwork Fri Feb 11 14:49:21 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2/2] patchwork-update-commits: autodetect patchwork install directory Date: Fri, 11 Feb 2011 04:49:21 -0000 From: Sascha Silbe X-Patchwork-Id: 82889 Message-Id: <1297435761-5794-3-git-send-email-sascha-pgp@silbe.org> To: patchwork@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